コード例 #1
0
 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();
     }
 }
コード例 #2
0
        private void Button_Add_Click(object sender, RoutedEventArgs e)
        {
            FurnitureWindow furnitureWindow = new FurnitureWindow();

            furnitureWindow.Show();
        }