Exemplo n.º 1
0
        private void BtnBackToList_Click(object sender, EventArgs e)
        {
            ClientsForm listaClienti = new ClientsForm();

            this.Hide();
            listaClienti.Show();
        }
Exemplo n.º 2
0
 public EditClientForm(PartnerModel client, ClientsForm clientsForm)
 {
     InitializeComponent();
     this.client = client;
     this.form   = clientsForm;
     InitForm();
 }
Exemplo n.º 3
0
        private void BtnClienti_Click(object sender, EventArgs e)
        {
            ClientsForm clienti = new ClientsForm();

            clienti.Show();
            this.Hide();
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        private void BtnBack_Click(object sender, EventArgs e)
        {
            ClientsForm clientslist = new ClientsForm();

            clientslist.Show();
            this.Hide();
        }
Exemplo n.º 6
0
        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;
 }