Пример #1
0
 public void AddNewChildProfile(string title)
 {
     if (ChildProfiles == null)
     {
         ChildProfiles = new List <Profile>();
     }
     ChildProfiles.Add(CreateProfile(Context, title, this));
     Context.ContextChanged();
 }
Пример #2
0
 public void AddChildProfile(Profile profile)
 {
     if (ChildProfiles == null)
     {
         ChildProfiles = new List <Profile>();
     }
     profile.Context       = Context;
     profile.ParentProfile = this;
     ChildProfiles.Add(profile);
     Context.ContextChanged();
 }