コード例 #1
0
ファイル: CommandBase.cs プロジェクト: gdlprj/duscusys
        public virtual void ToDone()
        {
            if (_doneState == CommandDoneState.Done)
                throw new NotSupportedException("command already done");

            _doneState = CommandDoneState.Done;
        }
コード例 #2
0
ファイル: CommandBase.cs プロジェクト: z-saffarpour/duscusys
        public virtual void ToDone()
        {
            if (_doneState == CommandDoneState.Done)
            {
                throw new NotSupportedException("command already done");
            }

            _doneState = CommandDoneState.Done;
        }