Пример #1
0
        public static void ChangePassword(Window owner)
        {
            TelnetHelper _th = new TelnetHelper();

            if (_th.DoChangePassword(owner))
            {
                MessageBox.Show("Password changed!", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            else
            {
                MessageBox.Show("Password was NOT changed!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            _th.Disconnect();
            _th = null;
        }
Пример #2
0
 private void btnChangeTelnetPass_Click(object sender, RoutedEventArgs e)
 {
     TelnetHelper.ChangePassword(this);
 }