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(); } }
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(); } }
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(); } }