RemoveFromGroup() public method

public RemoveFromGroup ( CmsData.CMSDataContext Db, string name ) : void
Db CmsData.CMSDataContext
name string
return void
Beispiel #1
0
 private void SaveAgeGroupChoice(OrganizationMember om)
 {
     if (setting.TargetExtraValues)
     {
         foreach (var ag in setting.AgeGroups)
             person.RemoveExtraValue(DbUtil.Db, ag.SmallGroup);
         if (setting.AgeGroups.Count > 0)
             person.AddEditExtraValue(AgeGroup(), "true");
     }
     else
     {
         foreach (var ag in setting.AgeGroups)
             om.RemoveFromGroup(DbUtil.Db, ag.SmallGroup);
         if (setting.AgeGroups.Count > 0)
             om.AddToGroup(DbUtil.Db, AgeGroup());
     }
 }
Beispiel #2
0
 private void SaveYesNoChoices(OrganizationMember om, Ask ask)
 {
     if (setting.TargetExtraValues == false)
     {
         foreach (var yn in ((AskYesNoQuestions) ask).list)
         {
             om.RemoveFromGroup(DbUtil.Db, "Yes:" + yn.SmallGroup);
             om.RemoveFromGroup(DbUtil.Db, "No:" + yn.SmallGroup);
         }
         foreach (var g in YesNoQuestion)
             om.AddToGroup(DbUtil.Db, (g.Value == true ? "Yes:" : "No:") + g.Key);
     }
     else
         foreach (var g in YesNoQuestion)
             person.AddEditExtraValue(g.Key, g.Value == true ? "Yes" : "No");
 }
Beispiel #3
0
 public void RemoveFromSmallGroup(CMSDataContext Db, OrganizationMember om)
 {
     om.RemoveFromGroup(Db, SmallGroup);
 }