Beispiel #1
0
 public GnosisSystemAddressController(
     GnosisSystemAddressField systemAddressField,
     // IGnosisSystemAddressFieldImplementation _systemAddressFieldImplementation,
     GnosisEntityController entityController,
     GnosisToolbarController parent)
     : base(systemAddressField, entityController, parent)
 {
     systemAddressField.Address = GlobalData.Singleton.SystemController.SystemURL;
 }
        public GnosisToolbarMenuButtonController(
            GnosisGenericMenuItemController genericMenuItemController,
            GnosisMenuButton _menuButton,
            GnosisEntityController entityController,
            GnosisToolbarController parent)
            : base(_menuButton, entityController, parent)
        {
            menuItem          = (GnosisGenericMenuItem)genericMenuItemController.ControlImplementation;
            menuButton        = _menuButton;
            genericController = genericMenuItemController;

            menuButton.Order      = menuItem.Order;
            menuButton.GnosisIcon = menuItem.GnosisIcon;
            menuButton.Disabled   = menuItem.Disabled;
            menuButton.Caption    = menuItem.Caption;
            menuButton.Tooltip    = menuItem.Tooltip;
            menuButton.Hidden     = menuItem.Hidden;

            menuItem.PropertyChanged += MenuItem_PropertyChanged;
        }
Beispiel #3
0
        public void Setup()
        {
            toolbarControllers = new List <GnosisToolbarController>();

            int    count          = ((GnosisToolbarTray)ControlImplementation).Toolbars.Count;
            int    i              = 1;
            string splitterColour = EntityController.GetNormalStyle().ContentColour;

            foreach (GnosisToolbar toolbar in ((GnosisToolbarTray)ControlImplementation).Toolbars)
            {
                // IGnosisToolbarImplementation toolbarImplementation = GlobalData.Singleton.ImplementationCreator.GetGnosisToolbarImplementation();
                GnosisToolbarController toolbarController = new GnosisToolbarController(toolbar, EntityController, this);
                toolbarController.Setup();



                // ((IGnosisToolbarTrayImplementation)ControlImplementation).AddToolbar(toolbar);
                toolbarControllers.Add(toolbarController);
                i++;
            }
        }