protected virtual void OnExecuteDone(CmdExecuteState state)
        {
            this.State = state;
            OnExecuteFinish();
            OnDoneInvoke();

            if (Parent != null)
            {
                Parent.OnChildDone(this);
            }
            else
            {
                this.OnDestroy();
            }
        }
Exemple #2
0
        protected override void OnExecuteDone(CmdExecuteState state)
        {
            this.State = state;
            OnExecuteFinish();
            OnDoneInvoke();

            if (Parent != null)
            {
                Parent.OnChildDone(this);
            }
            else if (_isAutoDestroy)
            {
                this.OnDestroy();
            }
        }
 public virtual void Execute(ICommandContext context)
 {
     this.State    = CmdExecuteState.Success;
     this._context = context;
 }