Ejemplo n.º 1
0
 private void Search()
 {
     _projectDataContext       = new ProjectDataContext();
     _authorityGroupRepository = new AuthorityGroupRepository(_projectDataContext);
     dgvDuLieu.DataSource      = _authorityGroupRepository.GetAll().OrderBy(_ => _.AuthorityGroupName);
     Control();
 }
Ejemplo n.º 2
0
 private void frmAuthorityGroup_Load(object sender, EventArgs e)
 {
     _authorityGroupRepository = new AuthorityGroupRepository(_projectDataContext);
     LanguageTranslate.ChangeLanguageForm(this);
     LanguageTranslate.ChangeLanguageGridView(viewDuLieu);
     Search();
 }
 private void frmAuthorityGroupAddEdit_Load(object sender, EventArgs e)
 {
     _authorityGroupRepository           = new AuthorityGroupRepository(_projectDataContext);
     _programFunctionMasterRepository    = new ProgramFunctionMasterRepository(_projectDataContext);
     _programFunctionAuthorityRepository = new ProgramFunctionAuthorityRepository(_projectDataContext);
     LanguageTranslate.ChangeLanguageForm(this);
     LanguageTranslate.ChangeLanguageDataGridView(dgvDuLieu);
     if (String.IsNullOrEmpty(_id))
     {
         Clear();
     }
     else
     {
         GetData();
     }
     LoadProgramFunction();
 }