Ejemplo n.º 1
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisComboField)
     {
         if (comboFields == null)
         {
             comboFields = new List <GnosisComboField>();
         }
         comboFields.Add((GnosisComboField)child);
     }
     else if (child is GnosisCheckField)
     {
         if (checkFields == null)
         {
             checkFields = new List <GnosisCheckField>();
         }
         checkFields.Add((GnosisCheckField)child);
     }
     else if (child is GnosisButton)
     {
         if (buttons == null)
         {
             buttons = new List <GnosisButton>();
         }
         buttons.Add((GnosisButton)child);
     }
     else if (child is GnosisDateField)
     {
         if (dateFields == null)
         {
             dateFields = new List <GnosisDateField>();
         }
         dateFields.Add((GnosisDateField)child);
     }
     else if (child is GnosisDateTimeField)
     {
         if (dateTimeFields == null)
         {
             dateTimeFields = new List <GnosisDateTimeField>();
         }
         dateTimeFields.Add((GnosisDateTimeField)child);
     }
     else if (child is GnosisLinkField)
     {
         if (linkFields == null)
         {
             linkFields = new List <GnosisLinkField>();
         }
         linkFields.Add((GnosisLinkField)child);
     }
     else if (child is GnosisListField)
     {
         if (listFields == null)
         {
             listFields = new List <GnosisListField>();
         }
         listFields.Add((GnosisListField)child);
     }
     else if (child is GnosisNumberField)
     {
         if (numberFields == null)
         {
             numberFields = new List <GnosisNumberField>();
         }
         numberFields.Add((GnosisNumberField)child);
     }
     else if (child is GnosisRadioField)
     {
         if (radioFields == null)
         {
             radioFields = new List <GnosisRadioField>();
         }
         radioFields.Add((GnosisRadioField)child);
     }
     else if (child is GnosisTextField)
     {
         if (textFields == null)
         {
             textFields = new List <GnosisTextField>();
         }
         textFields.Add((GnosisTextField)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisPanel", child.GetType().Name);
     }
 }
Ejemplo n.º 2
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisDocumentParameter)
     {
         if (documentParameters == null)
         {
             documentParameters = new List <GnosisDocumentParameter>();
         }
         documentParameters.Add((GnosisDocumentParameter)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisNewMenuItem", child.GetType().Name);
     }
 }
Ejemplo n.º 3
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisNavigatorDocument)
     {
         if (navigatorDocuments == null)
         {
             navigatorDocuments = new List <GnosisNavigatorDocument>();
         }
         navigatorDocuments.Add((GnosisNavigatorDocument)child);
     }
     else if (child is GnosisConnectionDocument)
     {
         if (connectionDocuments == null)
         {
             connectionDocuments = new List <GnosisConnectionDocument>();
         }
         connectionDocuments.Add((GnosisConnectionDocument)child);
     }
     else if (child is GnosisGenericControl)
     {
         if (genericControls == null)
         {
             genericControls = new List <GnosisGenericControl>();
         }
         genericControls.Add((GnosisGenericControl)child);
     }
     else if (child is GnosisGenericMenu)
     {
         if (genericMenus == null)
         {
             genericMenus = new List <GnosisGenericMenu>();
         }
         genericMenus.Add((GnosisGenericMenu)child);
     }
     else if (child is GnosisInstanceVariable)
     {
         if (instanceVariables == null)
         {
             instanceVariables = new List <GnosisInstanceVariable>();
         }
         instanceVariables.Add((GnosisInstanceVariable)child);
     }
     else if (child is GnosisPermissionVariable)
     {
         if (permissionVariables == null)
         {
             permissionVariables = new List <GnosisPermissionVariable>();
         }
         permissionVariables.Add((GnosisPermissionVariable)child);
     }
     else if (child is GnosisEnvironmentVariable)
     {
         if (environmentVariables == null)
         {
             environmentVariables = new List <GnosisEnvironmentVariable>();
         }
         environmentVariables.Add((GnosisEnvironmentVariable)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisSystemDefinition", child.GetType().Name);
     }
 }
Ejemplo n.º 4
0
        public void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisPrimarySplit)
            {
                primarySplit = (GnosisPrimarySplit)child;
                // LoadPrimarySplit((GnosisPrimarySplit)child);
                contentRoot.Children.Add((GnosisPrimarySplit)primarySplit);
            }
            else if (child is GnosisToolbarTray)
            {
                if (toolbarTrays == null)
                {
                    toolbarTrays = new List <GnosisToolbarTray>();
                }

                toolbarTrays.Add((GnosisToolbarTray)child);
                // LoadToolbarTray((GnosisToolbarTray)child);
                switch (((GnosisToolbarTray)child)._TrayHorizontalAlignment)
                {
                case GnosisController.HorizontalAlignmentType.LEFT:
                    pnlToolsLeft.Children.Add((GnosisToolbarTray)child);
                    break;

                case GnosisController.HorizontalAlignmentType.CENTRE:
                    pnlToolsCentre.Children.Add((GnosisToolbarTray)child);
                    break;

                case GnosisController.HorizontalAlignmentType.RIGHT:
                    pnlToolsRight.Children.Add((GnosisToolbarTray)child);
                    break;
                }
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisParentWindow", child.GetType().Name);
            }
        }
Ejemplo n.º 5
0
        public override void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisSplit)
            {
                if (gnosisSplits == null)
                {
                    gnosisSplits = new List <GnosisSplit>();
                }

                gnosisSplits.Add((GnosisSplit)child);
            }
            else if (child is GnosisTile)
            {
                if (gnosisTiles == null)
                {
                    gnosisTiles = new List <GnosisTile>();
                }

                gnosisTiles.Add((GnosisTile)child);
            }
            else if (child is GnosisSplitDetail)
            {
                if (gnosisSplitDetails == null)
                {
                    gnosisSplitDetails = new List <GnosisSplitDetail>();
                }

                gnosisSplitDetails.Add((GnosisSplitDetail)child);
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisSplit: " + child.GetType().Name,
                                                              "GnosisSplit.GnosisAddChild");
            }
        }
Ejemplo n.º 6
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisDataItem)
     {
         if (dataItems == null)
         {
             dataItems = new List <GnosisDataItem>();
         }
         dataItems.Add((GnosisDataItem)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleError("Unknown object added to GnosisDataType: " + child.GetType().Name,
                                                       "GnosisDataType.GnosisAddChild");
     }
 }
Ejemplo n.º 7
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisMessage)
     {
         if (messages == null)
         {
             messages = new List <GnosisMessage>();
         }
         messages.Add((GnosisMessage)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisMessageList", child.GetType().Name);
     }
 }
Ejemplo n.º 8
0
 public virtual void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisCheckColumn)
     {
         checkColumns.Add((GnosisCheckColumn)child);
     }
     else if (child is GnosisComboColumn)
     {
         comboColumns.Add((GnosisComboColumn)child);
     }
     else if (child is GnosisDateColumn)
     {
         dateColumns.Add((GnosisDateColumn)child);
     }
     else if (child is GnosisDateTimeColumn)
     {
         dateTimeColumns.Add((GnosisDateTimeColumn)child);
     }
     else if (child is GnosisLinkColumn)
     {
         linkColumns.Add((GnosisLinkColumn)child);
     }
     else if (child is GnosisNumberColumn)
     {
         numberColumns.Add((GnosisNumberColumn)child);
     }
     else if (child is GnosisTextColumn)
     {
         textColumns.Add((GnosisTextColumn)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError(this.GetType().Name, child.GetType().Name);
     }
 }
Ejemplo n.º 9
0
        public virtual void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisDocumentParameter)
            {
                if (documentParameters == null)
                {
                    documentParameters = new List <GnosisDocumentParameter>();
                }
                documentParameters.Add((GnosisDocumentParameter)child);
            }
            else if (child is IGnosisGridImplementation)
            {
                if (grids == null)
                {
                    grids = new List <GnosisGrid>();
                }

                grids.Add((GnosisGrid)child);
            }
            else if (child is IGnosisMessageGridImplementation)
            {
                if (messageGrids == null)
                {
                    messageGrids = new List <GnosisMessageGrid>();
                }

                messageGrids.Add((GnosisMessageGrid)child);
            }
            else if (child is IGnosisPanelImplementation)
            {
                if (panels == null)
                {
                    panels = new List <GnosisPanel>();
                }

                panels.Add((GnosisPanel)child);
            }
            else if (child is IGnosisTextAreaImplementation)
            {
                if (textAreas == null)
                {
                    textAreas = new List <GnosisTextArea>();
                }

                textAreas.Add((GnosisTextArea)child);
            }
            else if (child is IGnosisCalendarImplementation)
            {
                if (calendars == null)
                {
                    calendars = new List <GnosisCalendar>();
                }

                calendars.Add((GnosisCalendar)child);
            }
            else if (child is GnosisTree)
            {
                if (trees == null)
                {
                    trees = new List <GnosisTree>();
                }

                trees.Add((GnosisTree)child);
            }
            else if (child is GnosisTab)
            {
                if (tabs == null)
                {
                    tabs = new List <GnosisTab>();
                }
                tabs.Add((GnosisTab)child);
            }
            else if (child is GnosisSystemLayoutArea)
            {
                if (systemLayoutAreas == null)
                {
                    systemLayoutAreas = new List <GnosisSystemLayoutArea>();
                }
                systemLayoutAreas.Add((GnosisSystemLayoutArea)child);
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisFrame", child.GetType().Name);
            }
        }
Ejemplo n.º 10
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisEntity)
     {
         if (entities == null)
         {
             entities = new List <GnosisEntity>();
         }
         entities.Add((GnosisEntity)child);
     }
     else if (child is GnosisInstance)
     {
         if (instances == null)
         {
             instances = new List <GnosisInstance>();
         }
         instances.Add((GnosisInstance)child);
     }
     else if (child is GnosisStyleSet)
     {
         styleSet = (GnosisStyleSet)child;
     }
     else if (child is GnosisDataDefinition)
     {
         dataDefinition = (GnosisDataDefinition)child;
     }
     else if (child is GnosisSystemDefinition)
     {
         systemDefinition = (GnosisSystemDefinition)child;
     }
     else if (child is GnosisParentWindow)
     {
         parentWindow = (GnosisParentWindow)child;
     }
     else if (child is GnosisMessageList)
     {
         messageList = (GnosisMessageList)child;
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisSystem", child.GetType().Name);
     }
 }
Ejemplo n.º 11
0
        //[System.Xml.Serialization.XmlElement("GnosisSearchParameter")]
        //public List<GnosisSearchParameter> SearchParameters
        //{
        //    get { return searchParameters; }
        //    set { searchParameters = value; }
        //}

        public void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisLinkAttribute)
            {
                linkAttributes.Add((GnosisLinkAttribute)child);
            }
            else if (child is GnosisLinkEntity)
            {
                linkEntities.Add((GnosisLinkEntity)child);
            }
            else if (child is GnosisLinkMenuButton)
            {
                linkMenuButton = (GnosisLinkMenuButton)child;
            }
            else if (child is GnosisLinkButton)
            {
                linkButton = (GnosisLinkButton)child;
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError(this.GetType().Name, child.GetType().Name);
            }
        }
Ejemplo n.º 12
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisTileTabItem)
     {
         tabItems.Add((GnosisTileTabItem)child);
     }
     else if (child is IGnosisFrameImplementation)
     {
         frames.Add((IGnosisFrameImplementation)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisTileTab: " + child.GetType().ToString(), "GnosisTileTab.AddChild()");
     }
 }
Ejemplo n.º 13
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisEventHandler)
     {
         if (eventHandlers == null)
         {
             eventHandlers = new List <GnosisEventHandler>();
         }
         eventHandlers.Add((GnosisEventHandler)child);
     }
     else if (child is GnosisGenericMenuGroup)
     {
         if (genericMenuGroups == null)
         {
             genericMenuGroups = new List <GnosisGenericMenuGroup>();
         }
         genericMenuGroups.Add((GnosisGenericMenuGroup)child);
     }
     else if (child is GnosisGenericMenuItem)
     {
         if (genericMenuItems == null)
         {
             genericMenuItems = new List <GnosisGenericMenuItem>();
         }
         genericMenuItems.Add((GnosisGenericMenuItem)child);
     }
     else if (child is GnosisGenericToggleMenuItem)
     {
         if (genericToggleMenuItems == null)
         {
             genericToggleMenuItems = new List <GnosisGenericToggleMenuItem>();
         }
         genericToggleMenuItems.Add((GnosisGenericToggleMenuItem)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisGenericMenuItem: " + child.GetType().ToString(),
                                                       "GnosisGenericMenutItem.AddChild()");
     }
 }
Ejemplo n.º 14
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisToolbar)
     {
         if (toolbars == null)
         {
             toolbars = new List <GnosisToolbar>();
         }
         toolbars.Add((GnosisToolbar)child);
         innerPanel.Children.Add((GnosisToolbar)child);
         //splitter
         //if (this.Children.Count > 1 && i < count)
         //{
         //    ((IGnosisToolbarTrayImplementation)ControlImplementation).AddSplitter(splitterColour);
         //}
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisToolbarTray", child.GetType().Name);
     }
 }
Ejemplo n.º 15
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisCalendar)
     {
         if (calendars == null)
         {
             calendars = new List <GnosisCalendar>();
         }
         calendars.Add((GnosisCalendar)child);
     }
     else if (child is GnosisGrid)
     {
         if (grids == null)
         {
             grids = new List <GnosisGrid>();
         }
         grids.Add((GnosisGrid)child);
     }
     else if (child is GnosisPanel)
     {
         if (panels == null)
         {
             panels = new List <GnosisPanel>();
         }
         panels.Add((GnosisPanel)child);
     }
     else if (child is GnosisTextArea)
     {
         if (textAreas == null)
         {
             textAreas = new List <GnosisTextArea>();
         }
         textAreas.Add((GnosisTextArea)child);
     }
     else if (child is GnosisTree)
     {
         if (trees == null)
         {
             trees = new List <GnosisTree>();
         }
         trees.Add((GnosisTree)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError(this.GetType().Name, child.GetType().Name);
     }
 }
Ejemplo n.º 16
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisControlReference)
     {
         if (controlReferences == null)
         {
             controlReferences = new List <GnosisControlReference>();
         }
         controlReferences.Add((GnosisControlReference)child);
     }
     else if (child is GnosisDataCache)
     {
         if (dataCaches == null)
         {
             dataCaches = new List <GnosisDataCache>();
         }
         dataCaches.Add((GnosisDataCache)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisDatasetItem", child.GetType().Name);
     }
 }
Ejemplo n.º 17
0
        public override void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisGalleryDocumentItem)
            {
                if (documentItems == null)
                {
                    documentItems = new List <GnosisGalleryDocumentItem>();
                }

                documentItems.Add((GnosisGalleryDocumentItem)child);
            }
            else if (child is GnosisGallerySearchItem)
            {
                if (searchItems == null)
                {
                    searchItems = new List <GnosisGallerySearchItem>();
                }

                searchItems.Add((GnosisGallerySearchItem)child);
            }
            else if (child is GnosisGalleryItem)
            {
                if (galleryItems == null)
                {
                    galleryItems = new List <GnosisGalleryItem>();
                }

                galleryItems.Add((GnosisGalleryItem)child);
            }
            else if (child is GnosisGallerySearchAttribute)
            {
                if (galleryAttributes == null)
                {
                    galleryAttributes = new List <GnosisGallerySearchAttribute>();
                }

                galleryAttributes.Add((GnosisGallerySearchAttribute)child);
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleError("Unkwown type added to GnosisGalleryDatasetItem: " + child.GetType().ToString(),
                                                              "GnosisGalleryDatasetItem.GnosisAddChild");
            }
        }
Ejemplo n.º 18
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisDatasetDefinition)
     {
         if (datasets == null)
         {
             datasets = new List <GnosisDatasetDefinition>();
         }
         datasets.Add((GnosisDatasetDefinition)child);
     }
     else if (child is GnosisDatasetItem)
     {
         if (datasetItems == null)
         {
             datasetItems = new List <GnosisDatasetItem>();
         }
         datasetItems.Add((GnosisDatasetItem)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisDatasetDefinition", child.GetType().Name);
     }
 }
Ejemplo n.º 19
0
        public virtual void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisSearchResultsGrid)
            {
                searchResultsGrid = (GnosisSearchResultsGrid)child;
            }
            else if (child is GnosisMessageGrid)
            {
                if (messageGrids == null)
                {
                    messageGrids = new List <GnosisMessageGrid>();
                }

                messageGrids.Add((GnosisMessageGrid)child);
            }
            else if (child is GnosisGrid)
            {
                if (grids == null)
                {
                    grids = new List <GnosisGrid>();
                }

                grids.Add((GnosisGrid)child);
            }
            else if (child is GnosisPanel)
            {
                if (panels == null)
                {
                    panels = new List <GnosisPanel>();
                }

                panels.Add((GnosisPanel)child);
            }
            else if (child is GnosisTab)
            {
                if (tabs == null)
                {
                    tabs = new List <GnosisTab>();
                }
                tabs.Add((GnosisTab)child);
            }
            else if (child is GnosisTextArea)
            {
                if (textAreas == null)
                {
                    textAreas = new List <GnosisTextArea>();
                }

                textAreas.Add((GnosisTextArea)child);
            }
            else if (child is GnosisCalendar)
            {
                if (calendars == null)
                {
                    calendars = new List <GnosisCalendar>();
                }

                calendars.Add((GnosisCalendar)child);
            }

            else if (child is GnosisSearchParameter)
            {
                if (searchParameters == null)
                {
                    searchParameters = new List <GnosisSearchParameter>();
                }

                searchParameters.Add((GnosisSearchParameter)child);
            }

            else if (child is GnosisNewMenuItem)
            {
                newMenuItem = (GnosisNewMenuItem)child;
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleError("AddChild unhandled in Frame - type " + child.GetType().Name,
                                                              "GnosisFrame.AddChild");
            }
        }
Ejemplo n.º 20
0
        //public void SetMarginLeft(int horizontalSpacing)
        //{
        //    this.Margin = new Thickness(horizontalSpacing, 0, 0, 0);
        //}

        public void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisGallerySearchAttribute)
            {
                if (galleryAttributes == null)
                {
                    galleryAttributes = new List <GnosisGallerySearchAttribute>();
                }
                galleryAttributes.Add((GnosisGallerySearchAttribute)child);
            }
            else if (child is GnosisGalleryDocumentItem)
            {
                if (galleryDocumentItems == null)
                {
                    galleryDocumentItems = new List <GnosisGalleryDocumentItem>();
                }
                GnosisGalleryDocumentItem item = (GnosisGalleryDocumentItem)child;
                galleryDocumentItems.Add(item);

                AddGalleryItem(item);
            }
            else if (child is GnosisGalleryDetail)
            {
                if (galleryDetails == null)
                {
                    galleryDetails = new List <GnosisGalleryDetail>();
                }
                galleryDetails.Add((GnosisGalleryDetail)child);
            }
            else if (child is GnosisGallerySearchItem)
            {
                if (gallerySearchItems == null)
                {
                    gallerySearchItems = new List <GnosisGallerySearchItem>();
                }
                gallerySearchItems.Add((GnosisGallerySearchItem)child);
                AddGalleryItem((GnosisGallerySearchItem)child);
            }
            else if (child is GnosisGalleryItem)
            {
                if (galleryItems == null)
                {
                    galleryItems = new List <GnosisGalleryItem>();
                }
                galleryItems.Add((GnosisGalleryItem)child);
                AddGalleryItem((GnosisGalleryItem)child);
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisGallery", child.GetType().Name);
            }
        }
Ejemplo n.º 21
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()");
     }
 }
Ejemplo n.º 22
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisNumberResults)
     {
         if (numberResults == null)
         {
             numberResults = new List <GnosisNumberResults>();
         }
         numberResults.Add((GnosisNumberResults)child);
     }
     else if (child is GnosisDateResults)
     {
         if (dateResults == null)
         {
             dateResults = new List <GnosisDateResults>();
         }
         dateResults.Add((GnosisDateResults)child);
     }
     else if (child is GnosisDateTimeResults)
     {
         if (dateTimeResults == null)
         {
             dateTimeResults = new List <GnosisDateTimeResults>();
         }
         dateTimeResults.Add((GnosisDateTimeResults)child);
     }
     else if (child is GnosisTextResults)
     {
         if (textResults == null)
         {
             textResults = new List <GnosisTextResults>();
         }
         textResults.Add((GnosisTextResults)child);
     }
     else if (child is GnosisCheckResults)
     {
         if (checkResults == null)
         {
             checkResults = new List <GnosisCheckResults>();
         }
         checkResults.Add((GnosisCheckResults)child);
     }
     else if (child is GnosisSearchResultsAttribute)
     {
         if (searchResultsAttributes == null)
         {
             searchResultsAttributes = new List <GnosisSearchResultsAttribute>();
         }
         searchResultsAttributes.Add((GnosisSearchResultsAttribute)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisSearchResultsGrid", child.GetType().Name);
     }
 }
Ejemplo n.º 23
0
        //[System.Xml.Serialization.XmlElement("GnosisSystemDefinition")]
        //public List<GnosisSystemDefinition> SystemDefinitions
        //{
        //    get { return systemDefinitions; }
        //    set { systemDefinitions = value; }
        //}

        public void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisDataDefinition)
            {
                data = (GnosisDataDefinition)child;
            }
            else if (child is GnosisDatasetDefinition)
            {
                if (datasets == null)
                {
                    datasets = new List <GnosisDatasetDefinition>();
                }
                datasets.Add((GnosisDatasetDefinition)child);
            }
            else if (child is GnosisDocumentFrame)
            {
                docFrame = (GnosisDocumentFrame)child;
            }
            else if (child is GnosisConnectionFrame)
            {
                connectionFrame = (GnosisConnectionFrame)child;
            }
            else if (child is GnosisNavigatorFrame)
            {
                navFrame = (GnosisNavigatorFrame)child;
            }
            else if (child is GnosisSearchFrame)
            {
                searchFrame = (GnosisSearchFrame)child;
            }
            else if (child is GnosisParentWindow)
            {
                parentWindow = (GnosisParentWindow)child;
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisEntity", child.GetType().Name);
            }
        }
Ejemplo n.º 24
0
        public virtual void GnosisAddChild(IGnosisObject child)
        {
            if (child is GnosisGalleryDocumentItem)
            {
                if (galleryDocumentItems == null)
                {
                    galleryDocumentItems = new List <GnosisGalleryDocumentItem>();
                }

                galleryDocumentItems.Add((GnosisGalleryDocumentItem)child);
                AddGalleryItem((GnosisGalleryDocumentItem)child);
                // this.Items.Add((GnosisGalleryDocumentItem)child);
            }
            else if (child is GnosisGalleryDatasetItem)
            {
                if (galleryDatasetItems == null)
                {
                    galleryDatasetItems = new List <GnosisGalleryDatasetItem>();
                }

                galleryDatasetItems.Add((GnosisGalleryDatasetItem)child);
                // this.Items.Add((GnosisGalleryDatasetItem)child);
            }
            else if (child is GnosisGallerySearchItem)
            {
                if (gallerySearchItems == null)
                {
                    gallerySearchItems = new List <GnosisGallerySearchItem>();
                }
                GnosisGallerySearchItem item = (GnosisGallerySearchItem)child;
                gallerySearchItems.Add(item);
                AddGalleryItem(item);
                // item.Margin = new Thickness(verticalMargin, horizontalMargin, verticalMargin, horizontalMargin + horizontalSpacing);
                // this.Items.Add((GnosisGallerySearchItem)child);
            }
            else if (child is GnosisGalleryItem)
            {
                if (galleryItems == null)
                {
                    galleryItems = new List <GnosisGalleryItem>();
                }

                galleryItems.Add((GnosisGalleryItem)child);
                AddGalleryItem((GnosisGalleryItem)child);
                //  ((GnosisGalleryItem)child).Margin = new Thickness(verticalMargin, horizontalMargin, verticalMargin, horizontalMargin + horizontalSpacing);
                // this.Items.Add((GnosisGalleryItem)child);
            }
            else
            {
                GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisGalleryItem: " + child.GetType().ToString(),
                                                              "GnosisGalleryItem.GnosisAddChild");
            }
        }
Ejemplo n.º 25
0
 public void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisDataType)
     {
         if (types == null)
         {
             types = new List <GnosisDataType>();
         }
         types.Add((GnosisDataType)child);
     }
     else if (child is GnosisDataCache)
     {
         if (caches == null)
         {
             caches = new List <GnosisDataCache>();
         }
         caches.Add((GnosisDataCache)child);
     }
     else if (child is GnosisDataSystemReference)
     {
         if (dataSystemReferences == null)
         {
             dataSystemReferences = new List <GnosisDataSystemReference>();
         }
     }
     else if (child is GnosisDataKey)
     {
         if (dataKeys == null)
         {
             dataKeys = new List <GnosisDataKey>();
         }
         dataKeys.Add((GnosisDataKey)child);
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleError("Unknown type added to GnosisDataDefinition: " + child.GetType().ToString(), "GnosisDataDefinition.AddChild()");
     }
 }
Ejemplo n.º 26
0
 public override void GnosisAddChild(IGnosisObject child)
 {
     if (child is GnosisGenericInput)
     {
         if (genericInputs == null)
         {
             genericInputs = new List <GnosisGenericInput>();
         }
         genericInputs.Add((GnosisGenericInput)child);
     }
     else if (child is GnosisGenericOutput)
     {
         if (genericOutputs == null)
         {
             genericOutputs = new List <GnosisGenericOutput>();
         }
         genericOutputs.Add((GnosisGenericOutput)child);
     }
     else if (child is GnosisEventHandler)
     {
         if (eventHandlers == null)
         {
             eventHandlers.Add((GnosisEventHandler)child);
         }
     }
     else
     {
         GlobalData.Singleton.ErrorHandler.HandleUnknowChildAddedError("GnosisGenericControl", child.GetType().Name);
     }
 }