private void btnChangeFeedUrl_Click(object sender, RoutedEventArgs e) { var dialogUserName = new MyDialog("Enter Feed URL:", false); if (dialogUserName.ShowDialog() == true) { Properties.Settings.Default.FEEDURL = dialogUserName.ResponseText.Replace("\n", "").Replace("\r", ""); Properties.Settings.Default.Save(); } }
private void btnChangeUser_Click(object sender, RoutedEventArgs e) { var dialogUserName = new MyDialog("Enter username:"******"Enter password:", true); if (dialogPassword.ShowDialog() == true) { Properties.Settings.Default.PASSWORD = dialogPassword.ResponseText; } Properties.Settings.Default.Save(); }