private void listViewDialogCustomer_ItemActivate(object sender, EventArgs e) { try { String CUSTNUMBER = listViewDialogCustomer.Items[listViewDialogCustomer.SelectedIndices[0]].Text; DialogSelectCustomer selectCustForm = new DialogSelectCustomer(REGION, AID, LID, LOGUSERID, USERNUMBER, CUSTNUMBER); selectCustForm.Show(); } catch (Exception) { buttonCustomerViewSelectCustomer.Enabled = false; } }
private void listViewDialogCustomer_ItemActivate(object sender, EventArgs e) { try { String CusID = listViewDialogCustomer.Items[listViewDialogCustomer.SelectedIndices[0]].Text; DialogSelectCustomer selectCustForm = new DialogSelectCustomer(KeyID, CusID); selectCustForm.ShowDialog(); } catch (Exception) { buttonCustomerViewSelectCustomer.Enabled = false; } }