1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Objects.CommunicationLayer.wfMainObjects;
namespace Objects.CommunicationLayer
{
public sealed partial class wfMain : SequentialWorkflowActivity
{
public wfMain()
{
WorkflowProgress += new wfMainProgressEventHandler<wfMainProgressEventsArgs>(wfMain_WorkflowProgress);
InitializeComponent();
}
void wfMain_WorkflowProgress(object sender, wfMainProgressEventsArgs e)
{
//Comment propager l'évennement au code appelant ?
}
public event wfMainProgressEventHandler<wfMainProgressEventsArgs> WorkflowProgress;
private void PathControl_ExecuteCode(object sender, EventArgs e)
{
wfMain_WorkflowProgress(this, new wfMainProgressEventsArgs(50, "Moitié"));
wfMain_WorkflowProgress(this, new wfMainProgressEventsArgs(100, "Fini"));
}
}
} |
Partager