Esempio n. 1
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     this.Close();
     form = new ListeFiches();
     form.Show();
     this.Hide();
 }
Esempio n. 2
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            DateTime dateValue = Convert.ToDateTime(this.dateTimePicker.Value);
            string   date      = dateValue.ToString("yyyy-MM-dd");

            String name   = this.textBoxName.Text;
            String amount = this.textBoxAmount.Text;

            opController.updateOffPrice(this.ID, name, date, amount);

            form = new ListeFiches();
            form.Show();
            this.Hide();
        }
Esempio n. 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            DateTime dateValue = Convert.ToDateTime(this.dateTimePicker1.Value);
            string   date      = dateValue.ToString("yyyy-MM-dd");

            String id        = this.txtId.Text;
            String name      = this.txtName.Text;
            String firstname = this.txtFirstname.Text;
            String login     = this.txtLogin.Text;
            String password  = this.txtPsw.Text;
            String address   = this.txtAddress.Text;
            String zip       = this.txtCp.Text;
            String city      = this.txtCity.Text;
            String role      = this.txtRole.Text;

            uController = new UserController();

            uController.addUsers(id, name, firstname, login, password, address, zip, city, date, role);
            this.Close();
            form = new ListeFiches();
            form.Show();
            this.Hide();
        }