Ejemplo n.º 1
0
        private void KillJoshJohnson(object sender, RoutedEventArgs e)
        {
            e.Handled = true;
            if (this.PreGameLobby.Visibility == Visibility.Visible) return;
            var s = sender as FrameworkElement;
            if (s == null) return;
            var document = s.DataContext as Document;
            if (document == null) return;
            var wnd = new RulesWindow(document) { Owner = this };
            wnd.Show();

        }
Ejemplo n.º 2
0
 private void ShowHelp(object sender, RoutedEventArgs e)
 {
     e.Handled = true;
     var wnd = new RulesWindow { Owner = this };
     txt = "hlp";
     wnd.ShowDialog();
 }