Compare commits
1 Commits
C2026-012
...
F2026-004_
| Author | SHA1 | Date | |
|---|---|---|---|
| a181cf3815 |
Binary file not shown.
Binary file not shown.
@@ -216,7 +216,7 @@ namespace VEPROMS
|
|||||||
MembershipInfo mi = (MembershipInfo)lstMembers.SelectedItem;
|
MembershipInfo mi = (MembershipInfo)lstMembers.SelectedItem;
|
||||||
string selectedUserID = mi.MyUserUserID;
|
string selectedUserID = mi.MyUserUserID;
|
||||||
string msg = "Are you sure you want to remove this Group Member?";
|
string msg = "Are you sure you want to remove this Group Member?";
|
||||||
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
||||||
{
|
{
|
||||||
@@ -255,7 +255,7 @@ namespace VEPROMS
|
|||||||
MessageBox.Show("There are still users who are members of this group. You need to delete all members in order to delete this group.", "Group Has Members", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
MessageBox.Show("There are still users who are members of this group. You need to delete all members in order to delete this group.", "Group Has Members", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MessageBox.Show("Are you sure you want to delete this group?", "Confirm Deleting Group", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show("Are you sure you want to delete this group?", "Confirm Deleting Group", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
Group.Delete(gi.GID);
|
Group.Delete(gi.GID);
|
||||||
LoadRefreshGroupUsers();
|
LoadRefreshGroupUsers();
|
||||||
@@ -397,7 +397,7 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
int nummemberships = ui.UserMemberships.Count(mi => mi.EndDate == null || mi.EndDate == string.Empty);
|
int nummemberships = ui.UserMemberships.Count(mi => mi.EndDate == null || mi.EndDate == string.Empty);
|
||||||
string mem_text = nummemberships > 0 ? "\r\nNote that this will remove all memberships that this user has." : "";
|
string mem_text = nummemberships > 0 ? "\r\nNote that this will remove all memberships that this user has." : "";
|
||||||
if (MessageBox.Show($"Are you sure you want to delete this user?{mem_text}", "Confirm Deleting User", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show($"Are you sure you want to delete this user?{mem_text}", "Confirm Deleting User", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
foreach (MembershipInfo minfo in ui.UserMemberships.Where(mi => mi.EndDate == null || mi.EndDate == string.Empty))
|
foreach (MembershipInfo minfo in ui.UserMemberships.Where(mi => mi.EndDate == null || mi.EndDate == string.Empty))
|
||||||
{
|
{
|
||||||
@@ -477,7 +477,7 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
MembershipInfo mi = (MembershipInfo)lstGroups.SelectedItem;
|
MembershipInfo mi = (MembershipInfo)lstGroups.SelectedItem;
|
||||||
string msg = "Are you sure you want to remove this Group Member?";
|
string msg = "Are you sure you want to remove this Group Member?";
|
||||||
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show(this, msg, "Confirm Group Member Removal", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
if (mi.MyGroup.GroupName == "Administrators" && mi.MyGroup.GroupMemberships.Count(mm => mm.EndDate == null || mm.EndDate == string.Empty) == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user