Exemple #1
0
        public static void ShowHandymanForm(Commands word)
        {
            var form = new HandymanForm {
                Handyman = word
            };

            if (form.ShowDialog() == DialogResult.OK && Context.Current.Handymans.Contains(word) == false)
            {
                Context.Current.Handymans.Add(word);
                HandymansManager.Save(Context.Current.Handymans);
            }
        }
Exemple #2
0
        public static void Setup()
        {
            var form = new OptionsForm();

            switch (form.ShowDialog())
            {
            case DialogResult.OK:
                HandymansManager.Save(Context.Current.Handymans);
                Properties.Settings.Default.Save();
                break;

            case DialogResult.Cancel:
                Properties.Settings.Default.Reload();
                break;
            }
        }