public override void Run() { if (!(this.Owner is IObjectDetailController)) { return; } IObjectDetailController detailPresenter = (IObjectDetailController)this.Owner; if (!detailPresenter.OnSave()) { return; } detailPresenter.SetEditorStatus(); SendMessage(null); //notify listview focus added row ObjectAddedMessage addMsg = new ObjectAddedMessage(); addMsg.ObjectID = detailPresenter.ObjectId; addMsg.ObjectName = detailPresenter.ObjectName; EventAggregationManager.SendMessage <ObjectAddedMessage>(addMsg); //notify related Module to Refresh. NotifyRelatedMessage relatedMsg = new NotifyRelatedMessage(); relatedMsg.ObjectName = detailPresenter.ObjectName; EventAggregationManager.SendMessage <NotifyRelatedMessage>(relatedMsg); }
public override void Run() { if (!(this.Owner is IObjectDetailController)) { return; } IObjectDetailController detailPresenter = (IObjectDetailController)this.Owner; detailPresenter.WorkingMode = EntityDetailWorkingMode.Edit; detailPresenter.SetEditorStatus(); SendMessage(null); }