コード例 #1
0
ファイル: MainView.xaml.cs プロジェクト: mtarcha-softheme/HMS
 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();
 }
コード例 #2
0
ファイル: MainView.xaml.cs プロジェクト: mtarcha/HMS
        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();
        }