コード例 #1
0
 private void Button_Edit_Click(object sender, RoutedEventArgs e)
 {
     GetComponentsResult selected = (GetComponentsResult)ListView.SelectedItem;
     if (selected != null)
     {
         Window_Edit window = new Window_Edit(selected.ID, Utility.EditMode.COMPONENT , ListView);
         window.ShowDialog();
     }
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: hkhoi/Woody
 private void ModifyModel(object sender, RoutedEventArgs e)
 {
     GetModelsResult Row = (GetModelsResult)gridModels.SelectedItem;
     if (Row != null)
     {
         string ModelId = Row.ID;
         Window_Edit window = new Window_Edit(ModelId, Utility.EditMode.MODEL, gridModels);
         window.ShowDialog();
     }
 }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: hkhoi/Woody
 private void ModifyCustomer(object sender, RoutedEventArgs e)
 {
     GetCustomersResult row = (GetCustomersResult)gridCustomers.SelectedItem;
     if (row != null)
     {
         string CustomerId = row.ID;
         Window_Edit window = new Window_Edit(CustomerId, Utility.EditMode.CUSTOMER, gridCustomers);
         window.ShowDialog();
     }
 }