Пример #1
0
        private void ShowManageUserGroupEdit()
        {
            DataRow dr = gvUserGroup.GetFocusedDataRow();

            if (dr == null)
            {
                return;
            }

            string GroupName = dr["NAME"].ToString();

            if (GroupName.ToLower() == "관리자")
            {
                XtraMessageBox.Show("관리자 그룹은 수정 할 수 없습니다.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            ManageUserGroupAdd ManageUserGroupAdd = new ManageUserGroupAdd();

            ManageUserGroupAdd.IsModify    = true;
            ManageUserGroupAdd.GroupName   = dr["NAME"].ToString();
            ManageUserGroupAdd.Description = dr["DESCRIPTION"].ToString();
            ManageUserGroupAdd.Permission  = dr["PERMISSION"].ToString();

            if (ManageUserGroupAdd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadUserGroup();
            }
        }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ManageUserGroupAdd ManageUserGroupAdd = new ManageUserGroupAdd();

            if (ManageUserGroupAdd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadUserGroup();
            }
        }