private void btnOk_Click(object sender, EventArgs e)
        {
            InputData          = new MacroData();
            InputData.CodeType = GetCheckedCodeType();
            InputData.TextData = txtCode.Text;

            this.DialogResult = DialogResult.OK;
        }
        private void menuInputCode_Click(object sender, EventArgs e)
        {
            InputTextBrowser popup = new InputTextBrowser();
            var res = popup.ShowDialog(this);

            if (res != DialogResult.OK)
            {
                Console.WriteLine("cancel");
                return;
            }

            macroData = popup.InputData;
        }