Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public MacroRecordForm(MacroRecorder recorder)
 {
     InitializeComponent();
     m_recorder = recorder;
 }