public Main() { InitializeComponent(); list = new MacroList(); parser = new Parser(list); txtIcon.Items.AddRange(parser.listIcons()); errorbox.Items.Add(parser.sizeIcons().ToString() + " Icon names loaded..."); errorbox.Items.Add(parser.sizeCommands().ToString() + " Commands loaded..."); }
public Parser(MacroList macro) { macroList = macro; commands = new List <Command>(); icons = new List <String>(); loadConfig(); }