private void AddItems() { AddItem addItem = new AddItem(); addItem.Owner = this; addItem.Show(); }
private void Add_Items(object sender, RoutedEventArgs e) { AddItem addItem = new AddItem(); addItem.Owner = this; addItem.Show(); addItem.Closing += AddItem_Closed; }
public static void OpenAddItemWindow(Window window) { AddItem add = new AddItem(); add.Owner = window; add.Show(); add.Owner = null; }