Exemplo n.º 1
0
 /// <summary>
 /// Sửa thông tin nhóm
 /// </summary>
 private void EditGroup()
 {
     if (lvwGroups.SelectedItems.Count == 0)
     {
         string str = WorkingContext.LangManager.GetString("frmGroup_SuaNhom_Loi_Messa");
         string str1 = WorkingContext.LangManager.GetString("frmGroup_SuaNhom_Loi_Title");
         MessageBox.Show(str, str1, MessageBoxButtons.OK,  MessageBoxIcon.Error);
     }
     else
     {
         FrmGroup frmGroup = new FrmGroup();
         frmGroup.GroupDataSet = dsGroup;
         frmGroup.lang = check;
         frmGroup.SelectedGroup = lvwGroups.SelectedIndices[0];
         frmGroup.ShowDialog(this);
         PopulateUserListView();
         PopulateGroupListView();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Thêm một nhóm mới
 /// </summary>
 private void AddNewGroup()
 {
     FrmGroup frmGroup = new FrmGroup();
     frmGroup.GroupDataSet = dsGroup;
     frmGroup.lang = check;
     frmGroup.ShowDialog(this);
     PopulateUserListView();
     PopulateGroupListView();
 }