private Context() { #region Register app at windows startup if (Properties.Settings.Default.RunAtWindowsStart) { Utilities.RunOnStart("Handyman", Application.ExecutablePath); } else { Utilities.RemoveRunOnStart("Handyman"); } #endregion Suggestions = new List<string>(); Suggestions.AddRange(History.GetAll()); Parser = new DefaultParser(); Handymans = HandymansManager.Load(); Tools = PluginManager.LoadPlugins(out __components, out List<string> sgs); Suggestions.AddRange(sgs); Suggestions.AddRange(Handymans.Select(x => x.Alias)); }
private Context() { #region Register app at windows startup if (Properties.Settings.Default.RunAtWindowsStart) { Utilities.RunOnStart("Handyman", Application.ExecutablePath); } else { Utilities.RemoveRunOnStart("Handyman"); } #endregion Parser = new DefaultParser(); Handymans = HandymansManager.Load(); Tools = PluginManager.LoadPlugins(out __components); }
private void reloadToolStripMenuItem_Click(object sender, EventArgs e) { Context.Current.Handymans = HandymansManager.Load(); }