Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (m_recorder.IsRunning)
     {
         m_recorder.Pause();
         btpause.Text = Texts.Get("s_start");
     }
     else
     {
         m_recorder.Start();
         btpause.Text = Texts.Get("s_pause");
     }
 }
Пример #2
0
        public DialogResult ShowDialog(Form window)
        {
            MacroRecorder inner = new MacroRecorder(m_module, window, null, m_vardefs);

            AddCommand(String.Format("    SetWindowProc('{0}')\n", inner.m_funcname));
            MacroManager.Listener = null;
            MacroManager.Listener = inner;
            inner.Start();
            DialogResult res;

            try
            {
                res = window.ShowDialog();
            }
            finally
            {
                inner.Close();
            }
            MacroManager.Listener = this;
            return(res);
        }