Пример #1
0
        public static IEnumerable <ResourceItem> GetResourceKeys(Screen Screen, GridSection Section, String Prefix)
        {
            List <ResourceItem> retVal = new List <ResourceItem>();

            AddResourceKey(retVal, Screen, Section, Prefix, "Grid.HelpText", Section.Grid.HelpText);

            foreach (GridColumn column in Section.Grid.Columns)
            {
                string ResourceKeyPrefix = String.Format("{0}.{1}.Grid.Columns", Prefix, Section.Name);
                retVal.AddRange(GridColumn.GetResourceKeys(Screen, column, ResourceKeyPrefix));
            }



            return(retVal);
        }
Пример #2
0
        private static void SetupGridColumns(Screen screen)
        {
            foreach (Section sectionObj in screen.Sections)
            {
                if (sectionObj is GridSection)
                {
                    GridSection section = (GridSection)sectionObj;

                    TieGridMembersToGrid(screen, section.Grid);
                }

                if (sectionObj is EditableGridSection)
                {
                    EditableGridSection section = (EditableGridSection)sectionObj;

                    TieGridMembersToGrid(screen, section.Grid);
                }
            }
        }
Пример #3
0
        public static IEnumerable <ResourceItem> GetResourceKeys(Screen Screen, Section Section, String Prefix)
        {
            List <ResourceItem> retVal = new List <ResourceItem>();

            AddResourceKey(retVal, Screen, Section, Prefix, "Name", Section.Name);


            foreach (Widget control in Section.Widgets)
            {
                string ResourceKeyPrefix = String.Format("{0}.{1}", Prefix, Section.Name);
                retVal.AddRange(Widget.GetResourceKeys(Screen, control, ResourceKeyPrefix));
            }

            switch (Section.Type.ToLower())
            {
            //case "details":
            //    retVal.AddRange(DetailsSection.GetResourceKeys(Screen, ((DetailsSection)Section), Prefix));
            //    break;
            //case "edit":
            //    retVal.AddRange(EditSection.GetResourceKeys(Screen, ((EditSection)Section), Prefix));
            //    break;
            //case "fusionchart":
            //    retVal.AddRange(FusionChartSection.GetResourceKeys(Screen, ((FusionChartSection)Section), Prefix));
            //    break;
            //case "googlemap":
            //    retVal.AddRange(GoogleMapSection.GetResourceKeys(Screen, ((GoogleMapSection)Section), Prefix));
            //    break;
            case "grid":
                retVal.AddRange(GridSection.GetResourceKeys(Screen, ((GridSection)Section), Prefix));
                break;
                //case "image":
                //    retVal.AddRange(ImageSection.GetResourceKeys(Screen, ((ImageSection)Section), Prefix));
                //    break;
            }

            return(retVal);
        }