示例#1
0
        private void DataGridViewEmployee_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int rowIndex   = e.RowIndex;
            int employeeId = int.Parse(DataGridViewEmployee.Rows[rowIndex].Cells[0].Value.ToString());
            EmployeeDataLogic employeeDataLogic = new EmployeeDataLogic();
            bool result = employeeDataLogic.GetEmployeeInfo(employeeId, out EmployeeName, out UserName, out Email, out IsActive, out SystemGenerate, out RoleId, out PasswordSalt, out IsApproved, out CreateDate, out IsLockedOut, out Contact, out Password);

            if (result == true)
            {
                EmployeeAddForm employeeAddForm = new EmployeeAddForm()
                {
                    MdiParent = this.Parent.FindForm()
                };
                projectAddForm.projectName        = projectName;
                projectAddForm.projectDescription = projectDescription;
                projectAddForm.isActive           = isActive;
                projectAddForm.isSystemGenerated  = isSystemGenerated;
                projectAddForm.projectId          = projectId;
                this.Hide();
                projectAddForm.Show();
            }
            else
            {
                MessageBox.Show("No Valid Information Found!", "Error!");
            }
        }
示例#2
0
        private void buttonAddEmployee_Click(object sender, EventArgs e)
        {
            EmployeeAddForm employeeaddform = new EmployeeAddForm();

            this.Hide();
            employeeaddform.Show();
        }