示例#1
0
        private void BtnEditCompany_Click(object sender, EventArgs e)
        {
            FrmCreateEditDepartment frmCreateEditDepartment = new FrmCreateEditDepartment((ModelDepartment)cmbCompanies.SelectedItem);

            frmCreateEditDepartment.ShowDialog();
            FillCmb();
        }
示例#2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            FrmCreateEditDepartment frmCreateEditDepartment = new FrmCreateEditDepartment(GetModel());


            frmCreateEditDepartment.ShowDialog();
            FillDGV();
        }
示例#3
0
 private void BtnCreate_Click(object sender, EventArgs e)
 {
     FrmCreateEditDepartment createDepartment = new FrmCreateEditDepartment(EnumDepartmentsType.DepartmentType.Project, _superiorDepId);
     createDepartment.ShowDialog();
     if (createDepartment.DialogResult == DialogResult.OK)
     {
         FillDGV();
     }
 }
示例#4
0
        private void BtnCreateCompany_Click(object sender, EventArgs e)
        {
            FrmCreateEditDepartment createCompany = new FrmCreateEditDepartment(EnumDepartmentsType.DepartmentType.Company);

            createCompany.ShowDialog();
            if (createCompany.DialogResult == DialogResult.OK)
            {
                FillCmb();
            }
        }
示例#5
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            FrmCreateEditDepartment frmCreateEditDepartment = new FrmCreateEditDepartment(
                _departmentsViewModel.MakeDepartment((int)dGVOverview.CurrentRow.Cells["Id"].Value, (string)dGVOverview.CurrentRow.Cells["Name"].Value,
                                                     (string)dGVOverview.CurrentRow.Cells["Code"].Value, (int?)dGVOverview.CurrentRow.Cells["SuperiorDepartmentId"].Value,
                                                     (int?)dGVOverview.CurrentRow.Cells["ManagerEmployeeId"].Value));


            frmCreateEditDepartment.ShowDialog();
            FillDGV();
        }