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>(); }
private void SaveButton_Click(object sender, EventArgs e) { UserSetting.SaveUserSettings(CreateUserSettingFromUIValues()); }
public static void SaveUserSettings(UserSetting userSetting) { userSetting.SaveUserSetting <UserSetting>(); }