private void BtnAdd_OnClick(object sender, RoutedEventArgs e) { var window = new WarehouseWindow(null); window.Owner = this; window.ShowDialog(); SetWarehouses(); }
private void LvWarehouses_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { var currentWarehouse = lvWarehouses.SelectedItem as Warehouse; if (currentWarehouse == null) { return; } var window = new WarehouseWindow(currentWarehouse); window.Owner = this; window.ShowDialog(); SetWarehouses(); }