public static UserSetting GetUserSettings()
 {
     var value = LoadUserSetting<UserSetting>();
     if (value == null)
         value = new UserSetting();
     return value;
 }
        private void Settings_Load(object sender, EventArgs e)
        {
            userSetting = UserSetting.GetUserSettings();

            InputFolderTextBox.Text = userSetting.InputFolderPath;
            OutputFolderTextbox.Text = userSetting.OutputFolderPath;
            TemplatePathTextBox.Text = userSetting.TemplatePath;
        }
Exemple #3
0
 public static void SaveUserSettings(UserSetting userSetting)
 {
     userSetting.SaveUserSetting <UserSetting>();
 }
Exemple #4
0
 private void SaveButton_Click(object sender, EventArgs e)
 {
     UserSetting.SaveUserSettings(CreateUserSettingFromUIValues());
 }
 public static void SaveUserSettings(UserSetting userSetting)
 {
     userSetting.SaveUserSetting<UserSetting>();
 }