public static void LoadMacrosFromFile(string fileName) { macroFileName = fileName; using (JsonTextReader jr = new JsonTextReader(new StreamReader(fileName))) { macros = js.Deserialize <MacroCollection>(jr); } }
public static void CreateMacros() { macros = new MacroCollection(); }