예제 #1
0
 private void OnAbout(object sender, System.Windows.Input.ExecutedRoutedEventArgs e)
 {
     var dialog = new VersionInfoWindow {
     Owner = this,
     DataContext = ((PeerCastAppViewModel)DataContext).VersionInfo
       };
       dialog.ShowDialog();
 }
예제 #2
0
 private void VersionInfoButton_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new VersionInfoWindow
       {
     Owner = Window.GetWindow(this),
     DataContext = ((MainViewModel)DataContext).VersionInfo
       };
       dialog.ShowDialog();
 }