示例#1
0
        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();
            }
        }
示例#2
0
        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();
        }