none
WorkflowDesigner / ModelChanged event RRS feed

  • Question

  •  WorkflowDesigner wd = new WorkflowDesigner();
                wd.Load(new Sequence());
      wd.ModelChanged += new EventHandler(wd_ModelChanged);

    void wd_ModelChanged(object sender, EventArgs e)
            {
                e is always null
            }

    i am getting e as always null when i add a new activity to the designer

    Please help!!!!!!

    Tuesday, September 6, 2011 5:43 AM

Answers

  • Hi RamuNest

    try this .

     ModelService modelService = wd.Context.Services.GetService<ModelService>();
                modelService.ModelChanged += (obj, arg) => 

    {
                    Console.WriteLine("workflow changed");
                };

     

    Thanks,

    Madhur


    MB
    Tuesday, September 6, 2011 11:01 AM