public void UnregisterActivity(BaseActivity activity){ foreach (ActivitiesLink activitiesLink in new List<ActivitiesLink>(_activitiesLinks)){ if(activitiesLink.TargetActivity == activity) _activitiesLinks.Remove(activitiesLink); if (activitiesLink.SourceActivity == activity) activitiesLink.SourceActivity = null; } }
protected override void Subscribe(IService service, BaseActivity activity){ activity.OnPost += service.SetValue; }
protected abstract void Subscribe(IService service, BaseActivity activity);
void _activityControlsController_OnExpandCompositeActivity(BaseActivity activity){ var tabPage = new TabPage(activity.Name); tabControl.TabPages.Add(tabPage); tabPage.Focus(); }
public IActivityControl GetControl(BaseActivity activity){ var activityControl = CreateActivityControl(); activityControl.Activity = activity; return activityControl; }
protected override void Subscribe(IService service, BaseActivity activity){ service.OnStateChanged += activity.Post; }
public void RegisterActivity(BaseActivity sourceActivity, BaseActivity targetActivity){ _activitiesLinks.Add(new ActivitiesLink(sourceActivity, targetActivity)); }
public void RegisterActivityControl(IActivityControl activityControl, BaseActivity sourceActivity, ActivityControlsLink sourceActivityControlsLink, int column, int row) { ActivityControls[column, row] = activityControl; activityControl.SourceActivity = sourceActivity; activityControl.OnClickActivityControl += activityControl_OnClickActivityControl; _designFieldControl.PlaceActivityControlAt(column, row, activityControl, sourceActivityControlsLink); activityControl.Init(); }