private void deleteSelectedRow() { VarsCompanies varsCompany = (VarsCompanies)listViewCustomers.SelectedItem; AdminConfirmation adminConfirmation = new AdminConfirmation(0, "company", varsCompany.company); adminConfirmation.Closed += adminConfirmationClosed; this.Close(); adminConfirmation.ShowDialog(); }
private void customerInformation_Click(object sender, RoutedEventArgs e) { if (listViewCustomers.SelectedItem == null) { myMessageQueue.Enqueue(rm.GetString("selectRowToTakeAction", cultureInfo), rm.GetString("ok", cultureInfo), () => HandleOKMethod()); return; } VarsCompanies varsCompanies = (VarsCompanies)listViewCustomers.SelectedItem; CustomerInformation customerInformation = new CustomerInformation(varsCompanies.company); customerInformation.ShowDialog(); }