Esempio n. 1
0
        private void AddEmployeeButton_Click(object sender, EventArgs e)
        {
            AddEmployeeForm form = new AddEmployeeForm();

            form.ShowDialog();
            DataBind();
        }
Esempio n. 2
0
        private void EditButtonToolStrip_Click(object sender, EventArgs e)
        {
            int             index = int.Parse(EmployeeDataGridView.Rows[EmployeeDataGridView.CurrentRow.Index].Cells[0].Value.ToString());
            AddEmployeeForm form  = new AddEmployeeForm(index);

            form.ShowDialog();
            DataBind();
        }