예제 #1
0
        /// <summary>
        /// Method for User Interaction commands
        /// </summary>
        /// <param name="command">Enum for UserInteractionCommands</param>
        private void DesignUserInteractionCommand(UserInteractionCommands command)
        {
            try
            {
                switch (command)
                {
                case UserInteractionCommands.Beep:
                    DesignAndProcessCommand(new BeepDialog(mainForm));
                    break;

                case UserInteractionCommands.Dialog:
                    DesignAndProcessCommand(new DialogDialog(mainForm, true));
                    break;

                case UserInteractionCommands.Help:
                    DisplayFeatureNotImplementedMessage();
                    //DesignAndProcessCommand(new HelpDialog(mainForm, true));
                    break;

                case UserInteractionCommands.Quit:
                    DesignAndProcessCommand(new QuitDialog(mainForm));
                    break;

                default:
                    break;
                } //switch
            }     //try
            finally
            {
                //programEditor.SavePGM(Files.LastPgm);
            }//finally
        }
예제 #2
0
 /// <summary>
 /// Method for User Interaction commands
 /// </summary>
 /// <param name="command">Enum for UserInteractionCommands</param>
 private void DesignUserInteractionCommand(UserInteractionCommands command)
 {
     try
     {
         switch (command)
         {
             case UserInteractionCommands.Beep:
                 DesignAndProcessCommand(new BeepDialog(mainForm));
                 break;
             case UserInteractionCommands.Dialog:
                 DesignAndProcessCommand(new DialogDialog(mainForm, true));
                 break;
             case UserInteractionCommands.Help:
                 DisplayFeatureNotImplementedMessage();
                 //DesignAndProcessCommand(new HelpDialog(mainForm, true));
                 break;
             case UserInteractionCommands.Quit:
                 DesignAndProcessCommand(new QuitDialog(mainForm));
                 break;
             default:
                 break;
         }//switch
     } //try
     finally
     {
         //programEditor.SavePGM(Files.LastPgm);
     }//finally
 }