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;
     DelimiterTextbox.Text = userSetting.Delimiter;
 }
 public static void SaveUserSettings(UserSetting userSetting)
 {
     userSetting.SaveUserSetting<UserSetting>();
 }
Exemple #4
0
 private void SaveButton_Click(object sender, EventArgs e)
 {
     UserSetting.SaveUserSettings(CreateUserSettingFromUIValues());
 }
Exemple #5
0
 public static void SaveUserSettings(UserSetting userSetting)
 {
     userSetting.SaveUserSetting <UserSetting>();
 }