private void btnEditClient_Click(object sender, EventArgs e) { var selectedClient = lbClients.SelectedItem as Client; addClient = new EditClient(selectedClient, this); addClient.ShowDialog(this); addClient.Dispose(); }
private void btnAddClient_Click(object sender, EventArgs e) { addClient = new EditClient(this); addClient.ShowDialog(this); addClient.Dispose(); }