Beispiel #1
0
        private void ShowPassword_Click(object sender, RoutedEventArgs e)
        {
            ShowPasswordsDialog dlg = new ShowPasswordsDialog();

            dlg.Owner       = Application.Current.MainWindow as MainWindow;
            dlg.RdpTerminal = myTerminal;
            dlg.ShowDialog();
        }
        private void ShowPassword_Click(object sender, RoutedEventArgs e)
        {
            ShowPasswordsDialog dlg = new ShowPasswordsDialog
            {
                Owner             = Application.Current.MainWindow as MainWindow,
                MSHostedViewModel = DataContext as MSHostedViewModel
            };

            dlg.ShowDialog();
        }