private void SaveSettings() { Settings settings = new Settings(); if (!string.IsNullOrWhiteSpace(textBoxURL.Text)) { settings.DownloadServerURL = textBoxURL.Text; } if (!string.IsNullOrWhiteSpace(textBoxUserName.Text)) { settings.DownloadUsername = textBoxUserName.Text; } settings.Save(); }
private void LoadSettings() { Settings settings = new Settings(); textBoxURL.Text = settings.DownloadServerURL; textBoxUserName.Text = settings.DownloadUsername; }