Exemple #1
0
        /// <summary>
        /// CEボタンがクリックされた
        /// </summary>
        /// <param name="sender">イベントのソース</param>
        /// <param name="e">イベントデータ</param>
        private void CEButton_Click(object sender, EventArgs e)
        {
            switch (state.GetState())
            {
            case ConstDefines.CalcState.Initaial:
            {
                state.InputCEButtonInitialState();
                break;
            }

            case ConstDefines.CalcState.WaitOperation:
            {
                state.InputCEButtonWaitOperationInputState();
                break;
            }

            case ConstDefines.CalcState.WaitNumInputAfterOperation:
            {
                state.InputCEButtonWaitNumInputAfterOperationState();
                break;
            }

            case ConstDefines.CalcState.Calulable:
            {
                state.InputCEButtonCalculableState();
                break;
            }

            default:
            {
                state.SetState(ConstDefines.CalcState.Initaial);
                break;
            }
            }
        }