private void Button_Edit_Click(object sender, RoutedEventArgs e) { if (FurnitureDataGrid.SelectedItems.Count > 0) { Furniture furniture = (Furniture)FurnitureDataGrid.SelectedItems[0]; FurnitureWindow furnitureWindow = new FurnitureWindow(furniture); furnitureWindow.Show(); } }
private void Button_Add_Click(object sender, RoutedEventArgs e) { FurnitureWindow furnitureWindow = new FurnitureWindow(); furnitureWindow.Show(); }