Example #1
0
        private static IDataPanel GetIDataPanel(XElement xe)
        {
            switch (xe.Attribute("Type").Value)
            {
            case "DataPanel":
                return(GetDataPanel(xe));

            case "DataPanelTwoSide":
                return(GetDataPanelTwoSide(xe));

            case "OrderGrid":
                return(GetOrderGrid(xe));

            case "DataPanelSplit":
                DataPanelSplit p = new DataPanelSplit();
                p.Height = float.Parse(xe.Attribute("Height").Value);
                return(p);

            case "DataPanelGrid":
                DataPanelGrid grid = new DataPanelGrid();
                SetValue(grid, xe);
                return(grid);

            case "DataPanelUpload":
                return(GetDataPanelUpload(xe));

            default:
                throw new Exception("异常Type");
            }
        }
Example #2
0
        private static IDataPanel GetIDataPanel(XElement xe)
        {
            switch (xe.Attribute("Type").Value)
            {
                case "DataPanel":
                    return GetDataPanel(xe);

                case "DataPanelTwoSide":
                    return GetDataPanelTwoSide(xe);

                case "OrderGrid":
                    return GetOrderGrid(xe);
                case "DataPanelSplit":
                    DataPanelSplit p = new DataPanelSplit();
                    p.Height = float.Parse(xe.Attribute("Height").Value);
                    return p;
                case "DataPanelGrid":
                    DataPanelGrid grid = new DataPanelGrid();
                    SetValue(grid, xe);
                    return grid;
                case "DataPanelUpload" :
                    return GetDataPanelUpload(xe);
                default:
                    throw new Exception("异常Type");
            }
        }