Example #1
0
 public MacroExecDialog(FastColoredTextBox tb)
 {
     InitializeComponent();
     foreach (
         var item in Directory.GetFiles(GlobalSettings.SettingsDir, "*.ynotemacro", SearchOption.AllDirectories))
     {
         var macroItem = new MacroItem(Path.GetFileNameWithoutExtension(item), item);
         cmbMacros.Items.Add(macroItem);
     }
     cmbMacros.SelectedIndex = 0;
     fctb = tb;
 }
 public MacroExecDialog(FastColoredTextBox tb)
 {
     InitializeComponent();
     foreach (
         var item in Directory.GetFiles(GlobalSettings.SettingsDir, "*.ynotemacro", SearchOption.AllDirectories))
     {
         var macroItem = new MacroItem(Path.GetFileNameWithoutExtension(item), item);
         cmbMacros.Items.Add(macroItem);
     }
     cmbMacros.SelectedIndex = 0;
     fctb = tb;
 }