예제 #1
0
        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);
        }
예제 #2
0
        public override void Run()
        {
            if (!(this.Owner is IObjectDetailController))
            {
                return;
            }
            IObjectDetailController detailPresenter = (IObjectDetailController)this.Owner;

            detailPresenter.WorkingMode = EntityDetailWorkingMode.Edit;
            detailPresenter.SetEditorStatus();
            SendMessage(null);
        }