Example #1
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);
        }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     m_recorder.Close();
     Close();
 }