private void ItemDoubleClick(object sender, MouseButtonEventArgs e) { var s = (ListBoxItem)sender; var window = new Windows.EventWindow(this, Context, SelectedWorld, (int)s.Tag); window.Visibility = Visibility.Visible; }
private void NewButton_Click(object sender, RoutedEventArgs e) { var window = new Windows.EventWindow(this, Context, SelectedWorld, null); window.Visibility = Visibility.Visible; }