/// <summary> /// Loads the plugin settings /// </summary> private void LoadSettings() { this.settingObject = new Settings(); if (!File.Exists(this.settingFilename)) this.SaveSettings(); else { Object obj = ObjectSerializer.Deserialize(this.settingFilename, this.settingObject); this.settingObject = (Settings)obj; } if (this.settingObject.UserMacros.Count == 0) { Macro execScript = new Macro("&Execute Script", new String[1] { "ExecuteScript|Development;$(OpenFile)" }, String.Empty, Keys.None, false); Macro execCommand = new Macro("E&xecute Command", new String[1] { "#$$(Command=RunProcess)|$$(Arguments=cmd.exe)" }, String.Empty, Keys.None, false); Macro execfCommand = new Macro("Execu&te Current File", new String[1] { "RunProcess|$(CurFile)" }, String.Empty, Keys.None, false); Macro runSelected = new Macro("Execute &Selected Text", new String[1] { "RunProcess|$(SelText)" }, String.Empty, Keys.None, false); Macro browseSelected = new Macro("&Browse Current File", new String[1] { "Browse|$(CurFile)" }, String.Empty, Keys.None, false); Macro copyTextAsRtf = new Macro("&Copy Text As RTF", new String[1] { "ScintillaCommand|CopyRTF" }, String.Empty, Keys.None, false); this.settingObject.UserMacros.Add(execScript); this.settingObject.UserMacros.Add(execCommand); this.settingObject.UserMacros.Add(execfCommand); this.settingObject.UserMacros.Add(runSelected); this.settingObject.UserMacros.Add(browseSelected); this.settingObject.UserMacros.Add(copyTextAsRtf); } }
private void BytesLength(Macro macro) { }