Exemplo n.º 1
0
 private void btnFileNamesByPartialName_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new FileNamesByPartialNameDialogWindow(_mainViewModel);
     dialog.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
     dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     dialog.ShowDialog();
 }
Exemplo n.º 2
0
        private void btnFileNamesByPartialName_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new FileNamesByPartialNameDialogWindow(_mainViewModel);

            dialog.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
            dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            dialog.ShowDialog();
        }