예제 #1
0
 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;
     }
 }
예제 #2
0
 protected override void Subscribe(IService service, BaseActivity activity){
     activity.OnPost += service.SetValue;
 }
예제 #3
0
 protected abstract void Subscribe(IService service, BaseActivity activity);
예제 #4
0
파일: MainForm.cs 프로젝트: satr/rvslite
 void _activityControlsController_OnExpandCompositeActivity(BaseActivity activity){
     var tabPage = new TabPage(activity.Name);
     tabControl.TabPages.Add(tabPage);
     tabPage.Focus();
 }
예제 #5
0
 public IActivityControl GetControl(BaseActivity activity){
     var activityControl = CreateActivityControl();
     activityControl.Activity = activity;
     return activityControl;
 }
예제 #6
0
 protected override void Subscribe(IService service, BaseActivity activity){
     service.OnStateChanged += activity.Post;
 }
예제 #7
0
 public void RegisterActivity(BaseActivity sourceActivity, BaseActivity targetActivity){
     _activitiesLinks.Add(new ActivitiesLink(sourceActivity, targetActivity));
 }
예제 #8
0
  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();
 }