コード例 #1
0
        private void BtnBackToList_Click(object sender, EventArgs e)
        {
            ClientsForm listaClienti = new ClientsForm();

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

            clienti.Show();
            this.Hide();
        }
コード例 #4
0
ファイル: ClientForm.cs プロジェクト: PavelCneazul/Totalsoft
        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);
            }
        }
コード例 #5
0
ファイル: ClientForm.cs プロジェクト: PavelCneazul/Totalsoft
        private void BtnBack_Click(object sender, EventArgs e)
        {
            ClientsForm clientslist = new ClientsForm();

            clientslist.Show();
            this.Hide();
        }
コード例 #6
0
        private void BtnClients_Click(object sender, EventArgs e)
        {
            ClientsForm clientsMenu = new ClientsForm();

            clientsMenu.Show();
            this.Hide();
            clientsMenu.FormClosed += FormClosed;
        }
コード例 #7
0
 public AddClientForm(ClientsForm clientsForm)
 {
     InitializeComponent();
     this.form = clientsForm;
 }