Пример #1
0
        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));
        }
Пример #2
0
        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);
        }
Пример #3
0
 private void reloadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Context.Current.Handymans = HandymansManager.Load();
 }