Inheritance: System.Windows.Forms.Form
        private void ShowRenameMacroDialog(SavedMacro macro)
        {
            var dialog = new SaveMacroDialog(macro.Name);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                SavedMacros.RenameMacro(macro.Guid, dialog.MacroName);
                macro.Name = dialog.MacroName;
                macros.ResetItem(macroListBox.SelectedIndex);
            }
        }
 // Shows the save macro dialog
 private void ShowSaveMacroDialog(Macro macro, string name = null)
 {
     var dialog = new SaveMacroDialog(name);
     if (dialog.ShowDialog() == DialogResult.OK)
         SavedMacros.SaveMacro(macro, dialog.MacroName);
 }
 private void ShowRenameMacroDialog(SavedMacro macro)
 {
     var dialog = new SaveMacroDialog(macro.Name);
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         SavedMacros.RenameMacro(macro.Guid, dialog.MacroName);
         macro.Name = dialog.MacroName;
         macros.ResetItem(macroListBox.SelectedIndex);
     }
 }