コード例 #1
0
 public static void SetSubject()
 {
     EnterSubjectForm form = new EnterSubjectForm();
     var userSettings = ConfigManager.CurrentUserSpecific;
     form.SetPresentationSubjectText(userSettings.PresentationSubject ?? "");
     if(form.ShowDialog() == DialogResult.OK)
     {
         userSettings.PresentationSubject = form.PresentationSubject;
         userSettings.Save(UserSpecificConfig.DefaultFileName);
     }
 }
コード例 #2
0
        public static void SetSubject()
        {
            EnterSubjectForm form = new EnterSubjectForm();
            var userSettings      = ConfigManager.CurrentUserSpecific;

            form.SetPresentationSubjectText(userSettings.PresentationSubject ?? "");
            if (form.ShowDialog() == DialogResult.OK)
            {
                userSettings.PresentationSubject = form.PresentationSubject;
                userSettings.Save(UserSpecificConfig.DefaultFileName);
            }
        }