示例#1
0
 void editMenuItem_Click(object sender, EventArgs e)
 {
     using (ChangePauseDialog dlg = new ChangePauseDialog()) {
         dlg.Pause = Pause;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             Pause = dlg.Pause;
         }
     }
 }
示例#2
0
        /// <summary>
        /// Displays Change Pause dialog and 
        /// returns WaitMacroCommand object with specified pause or null.
        /// </summary>
        public static WaitMacroCommand PromptUser(int pause)
        {
            WaitMacroCommand cmd = null;

            using (ChangePauseDialog dlg = new ChangePauseDialog()) {
                dlg.Pause = pause;
                if (dlg.ShowDialog() == DialogResult.OK) {
                    cmd = new WaitMacroCommand();
                    cmd.Pause = dlg.Pause;
                }
            }

            return cmd;
        }
示例#3
0
        /// <summary>
        /// Displays Change Pause dialog and
        /// returns WaitMacroCommand object with specified pause or null.
        /// </summary>
        public static WaitMacroCommand PromptUser(int pause)
        {
            WaitMacroCommand cmd = null;

            using (ChangePauseDialog dlg = new ChangePauseDialog()) {
                dlg.Pause = pause;
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    cmd       = new WaitMacroCommand();
                    cmd.Pause = dlg.Pause;
                }
            }

            return(cmd);
        }
示例#4
0
 void editMenuItem_Click(object sender, EventArgs e)
 {
     using (ChangePauseDialog dlg = new ChangePauseDialog()) {
         dlg.Pause = Pause;
         if (dlg.ShowDialog() == DialogResult.OK) {
             Pause = dlg.Pause;
         }
     }
 }