public void fire(string objectId, ActivityType activityType) { if (activityType == ActivityType.ButtonClick) { ModuleMediatorFacade.Invoke(null, objectId, null); } }
protected void InitEvents() { this.FormClosed += new FormClosedEventHandler(Form_FormClosed); this.Activated += new EventHandler(Form_Activated); if (this.ButtonAdd != null) { this.ButtonAdd.Click += new System.EventHandler(this.btnAdd_Click); } if (this.ButtonEdit != null) { this.ButtonEdit.Click += new System.EventHandler(this.btnEdit_Click); } if (this.ButtonDelete != null) { this.ButtonDelete.Click += new System.EventHandler(this.btnDelete_Click); } if (this.ButtonSave != null) { this.ButtonSave.Click += new System.EventHandler(this.btnSave_Click); } if (this.ButtonCancel != null) { this.ButtonCancel.Click += new System.EventHandler(this.btnCancel_Click); } if (this.DataAdapter != null) { this.DataAdapter.RowUpdated += new MySqlRowUpdatedEventHandler(onRowUpdated); } if (this.GridViewMain != null) { this.GridViewMain.ShowingPopupEditForm += new ShowingPopupEditFormEventHandler(GridViewMain_ShowingPopupEditForm); this.GridViewMain.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(GridViewMain_CustomDrawCell); this.GridViewMain.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(GridViewMain_CellValueChanged); this.GridViewMain.RowDeleting += new DevExpress.Data.RowDeletingEventHandler(GridViewMain_RowDeleting); this.GridViewMain.RowUpdated += new DevExpress.XtraGrid.Views.Base.RowObjectEventHandler(GridViewMain_RowUpdated); ModuleMediatorFacade.Invoke(this, WorkFlowActions.AdjustPopupEditForm, this.GridViewMain); } ModuleMediatorFacade.Invoke(this, WorkFlowActions.InitFormTracker, this); }
public void InitSubscribers(object argument) { ModuleMediatorFacade.Subscribe(WorkFlowActions.InitFormTracker, new InitFormTrackerAction()); ModuleMediatorFacade.Subscribe(WorkFlowActions.AdjustPopupEditForm, new AdjustPopupEditFormAction()); }