Exemplo n.º 1
0
        private void InitializeRenderer()
        {
            renderer = new NaviOffice7Renderer();

            switch (layoutStyle)
            {
            case NaviLayoutStyle.Office2003Blue:
            case NaviLayoutStyle.Office2003Green:
            case NaviLayoutStyle.Office2003Silver:
                renderer = new NaviOffice3Renderer();
                renderer.Initialize(layoutStyle);
                break;

            case NaviLayoutStyle.Office2007Blue:
            case NaviLayoutStyle.Office2007Silver:
            case NaviLayoutStyle.Office2007Black:
                renderer = new NaviOffice7Renderer();
                renderer.Initialize(layoutStyle);
                break;

            case NaviLayoutStyle.Office2010Blue:
            case NaviLayoutStyle.Office2010Silver:
            case NaviLayoutStyle.Office2010Black:
                renderer = new NaviOffice10Renderer();
                renderer.Initialize(layoutStyle);
                break;

            default:
                break;
            }
        }
        /// <summary>
        /// Initializes the LayoutEngine
        /// </summary>
        public override void Initialize()
        {
            base.Initialize();

            renderer = new NaviOffice7Renderer();

            switch (OwnerBar.LayoutStyle)
            {
            // TODO Initialize renderer
            case NaviLayoutStyle.Office2003Blue:
            case NaviLayoutStyle.Office2003Green:
            case NaviLayoutStyle.Office2003Silver:
                renderer       = new NaviOffice3Renderer();
                splitterHeight = 8;
                renderer.Initialize(OwnerBar.LayoutStyle);
                break;

            case NaviLayoutStyle.Office2007Blue:
            case NaviLayoutStyle.Office2007Silver:
            case NaviLayoutStyle.Office2007Black:
                renderer       = new NaviOffice7Renderer();
                splitterHeight = 8;
                renderer.Initialize(OwnerBar.LayoutStyle);
                break;

            case NaviLayoutStyle.Office2010Blue:
            case NaviLayoutStyle.Office2010Silver:
            case NaviLayoutStyle.Office2010Black:
                renderer       = new NaviOffice10Renderer();
                splitterHeight = 6;
                renderer.Initialize(OwnerBar.LayoutStyle);
                break;

            default:
                break;
            }

            foreach (NaviBand band in Bar.Bands)
            {
                band.Renderer = renderer;
                if (band.Button != null)
                {
                    band.Button.Renderer = renderer;
                }
            }

            CreateAdditionalControls();
            InitializeAdditionalControls();
        }
		/// <summary>
		/// Initializes the LayoutEngine
		/// </summary>
		public override void Initialize()
		{
			base.Initialize();

			renderer = new NaviOffice7Renderer();

			switch (OwnerBar.LayoutStyle)
			{
				// TODO Initialize renderer
				case NaviLayoutStyle.Office2003Blue:
				case NaviLayoutStyle.Office2003Green:
				case NaviLayoutStyle.Office2003Silver:
					renderer = new NaviOffice3Renderer();
					splitterHeight = 8;
					renderer.Initialize(OwnerBar.LayoutStyle);
					break;
				case NaviLayoutStyle.Office2007Blue:
				case NaviLayoutStyle.Office2007Silver:
				case NaviLayoutStyle.Office2007Black:
					renderer = new NaviOffice7Renderer();
					splitterHeight = 8;
					renderer.Initialize(OwnerBar.LayoutStyle);
					break;
				case NaviLayoutStyle.Office2010Blue:
				case NaviLayoutStyle.Office2010Silver:
				case NaviLayoutStyle.Office2010Black:
					renderer = new NaviOffice10Renderer();
					splitterHeight = 6;
					renderer.Initialize(OwnerBar.LayoutStyle);
					break;
				default:
					break;
			}

			foreach (NaviBand band in Bar.Bands)
			{
				band.Renderer = renderer;
				if (band.Button != null)
					band.Button.Renderer = renderer;
			}

			CreateAdditionalControls();
			InitializeAdditionalControls();
		}
Exemplo n.º 4
0
      private void InitializeRenderer()
      {
         renderer = new NaviOffice7Renderer();

         switch (layoutStyle)
         {
            case NaviLayoutStyle.Office2003Blue:
            case NaviLayoutStyle.Office2003Green:
            case NaviLayoutStyle.Office2003Silver:
               renderer = new NaviOffice3Renderer();
               renderer.Initialize(layoutStyle);
               break;
            case NaviLayoutStyle.Office2007Blue:
            case NaviLayoutStyle.Office2007Silver:
            case NaviLayoutStyle.Office2007Black:
               renderer = new NaviOffice7Renderer();
               renderer.Initialize(layoutStyle);
               break;
            case NaviLayoutStyle.Office2010Blue:
            case NaviLayoutStyle.Office2010Silver:
            case NaviLayoutStyle.Office2010Black:
               renderer = new NaviOffice10Renderer();
               renderer.Initialize(layoutStyle);
               break;
            default:
               break;
         }
      }