示例#1
0
 public void LayoutChild(GnosisInnerLayoutController child, int col, int row, int colSpan, int rowSpan, double width)
 {
     if (child is GnosisMessageGridController)
     {
         IGnosisMessageGridImplementation msgGridImp = (IGnosisMessageGridImplementation)child.ControlImplementation;
         ((IGnosisFrameImplementation)ControlImplementation).LoadMessageGridImplementation(msgGridImp, col, row, colSpan, rowSpan);
     }
     else if (child is GnosisGridController)
     {
         IGnosisGridImplementation gridImp = (IGnosisGridImplementation)child.ControlImplementation;
         ((IGnosisFrameImplementation)ControlImplementation).LoadGrid(gridImp, col, row, colSpan, rowSpan);
         // ((GnosisGridController)child).LayoutRows();
     }
     else if (child is GnosisPanelController)
     {
         IGnosisPanelImplementation panelImp = (IGnosisPanelImplementation)child.ControlImplementation;
         ((GnosisPanelController)child).SetLayoutParameters(colSpan, numSections, width);
         ((IGnosisFrameImplementation)ControlImplementation).LoadPanel(panelImp, col, row, colSpan, rowSpan);
     }
     else if (child is GnosisGalleryController)
     {
         IGnosisGalleryImplementation galleryImp = (IGnosisGalleryImplementation)child.ControlImplementation;
         ((IGnosisNavFrameImplementation)ControlImplementation).LoadGallery(galleryImp, col, row, colSpan, rowSpan);
     }
 }
示例#2
0
 public void LoadMessageGridImplementation(IGnosisMessageGridImplementation msgGridImp, int col, int row, int colSpan, int rowSpan)
 {
     LoadControl((GnosisMessageGrid)msgGridImp, col, row, colSpan, rowSpan);
 }