Пример #1
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisSystemAddressField)
     {
         systemAddressField = (GnosisSystemAddressField)child;
         this.Children.Add(systemAddressField);
     }
     else if (child is GnosisToolbarButton)
     {
         this.Children.Add((GnosisButton)child);
     }
     //else if (child is GnosisToolbarMenuButton)
     //{
     //    this.Children.Add((GnosisToolbarMenuButton)child);
     //}
     else if (child is GnosisToggleButton)
     {
         this.Children.Add((GnosisToggleButton)child);
     }
 }
Пример #2
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisSystemAddressField)
     {
         gnosisSystemAddressField = (GnosisSystemAddressField)child;
     }
     else if (child is GnosisGenericMenuGroup)
     {
         if (genericMenuGroups == null)
         {
             genericMenuGroups = new List <GnosisGenericMenuGroup>();
         }
         genericMenuGroups.Add((GnosisGenericMenuGroup)child);
     }
     else if (child is GnosisGenericToggleMenuItem)
     {
         if (toggleMenuItems == null)
         {
             toggleMenuItems = new List <GnosisGenericToggleMenuItem>();
         }
         toggleMenuItems.Add((GnosisGenericToggleMenuItem)child);
     }
     else if (child is GnosisGenericMenuItem)
     {
         if (genericMenuItems == null)
         {
             genericMenuItems = new List <GnosisGenericMenuItem>();
         }
         genericMenuItems.Add((GnosisGenericMenuItem)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisGenericMenuItem: " + child.GetType().Name,
                                                       "GnosisGenericMenutItem.AddChild()");
     }
 }
Пример #3
0
 public void AddSystemAddressField(GnosisSystemAddressField systemAddressField)
 {
     //this.Items.Add((GnosisSystemAddressField)systemAddressField);
     this.Children.Add((GnosisSystemAddressField)systemAddressField);
 }