private void OnAbout(object sender, System.Windows.Input.ExecutedRoutedEventArgs e) { var dialog = new VersionInfoWindow { Owner = this, DataContext = ((PeerCastAppViewModel)DataContext).VersionInfo }; dialog.ShowDialog(); }
/// <summary> /// コマンドを実行します。 /// </summary> public void Execute() { var dialog = new VersionInfoWindow(); dialog.ShowDialog(); }