private void BtnBackToList_Click(object sender, EventArgs e) { ClientsForm listaClienti = new ClientsForm(); this.Hide(); listaClienti.Show(); }
public EditClientForm(PartnerModel client, ClientsForm clientsForm) { InitializeComponent(); this.client = client; this.form = clientsForm; InitForm(); }
private void BtnClienti_Click(object sender, EventArgs e) { ClientsForm clienti = new ClientsForm(); clienti.Show(); this.Hide(); }
private void BtnUpdateClient_Click(object sender, EventArgs e) { int ok = 0; if (TextWasChanged) { ok = 1; } bool status = false; int id = Convert.ToInt32(lblIdInvisible.Text); DAUpdateClient dAUpdateClient = new DAUpdateClient(); status = dAUpdateClient.update(ok, txtBoxClientName.Text, txtBoxSurName.Text, txtBoxClientCode.Text, txtBoxPhoneNo.Text, txtBoxEmail.Text, id); if (status == true) { MessageBox.Show("Clientul a fost modificat", "Notificare", MessageBoxButtons.OK, MessageBoxIcon.Information); ClientsForm clients = new ClientsForm(); clients.Show(); this.Hide(); clients.FormClosed += FormClosed_ListClients; } else { MessageBox.Show("Codul clientului este deja existent!", "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void BtnBack_Click(object sender, EventArgs e) { ClientsForm clientslist = new ClientsForm(); clientslist.Show(); this.Hide(); }
private void BtnClients_Click(object sender, EventArgs e) { ClientsForm clientsMenu = new ClientsForm(); clientsMenu.Show(); this.Hide(); clientsMenu.FormClosed += FormClosed; }
public AddClientForm(ClientsForm clientsForm) { InitializeComponent(); this.form = clientsForm; }