private void EditItem(object sender, RoutedEventArgs e) { if (currentID != 0) { var newWindow = new NewWindow(this, currentID); newWindow.Show(); } }
// MenuItems Logic private void MenuItem_Click_New(object sender, RoutedEventArgs e) { var newWindow = new NewWindow(this); newWindow.Show(); }