/// <summary> /// Deletes the role /// </summary> public void DeleteRole() { if (Enjin.DeleteRole(RolesList[SelectedRoleIndex]) != null) { RolesList = GetRolesList(); LastSelectedRoleIndex = -1; SelectedRoleIndex = 0; } }