Esempio n. 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);
     }
 }
Esempio n. 2
0
 public void LoadGallery(IGnosisGalleryImplementation galleryImp, int col, int row, int colSpan, int rowSpan)
 {
     LoadControl((GnosisGallery)galleryImp, col, row, colSpan, rowSpan);
 }