コード例 #1
0
        /// <summary>
        /// Initializes the bars that use the stripe classes in the form:
        /// <code>FerdaMenu</code>, <code>FerdaToolBar</code> and
        /// <code>FerdaStatusBar</code>
        /// </summary>
        protected void SetupStripes()
        {
            //menu
            menu = new Menu.FerdaMenu(this, this, projectManager, this, this);

            //toolBar
            toolBar = new FerdaToolBar(this, this, menu);

            //adding controls to the form (this order should remain)
            Controls.Add(toolBar);
            Controls.Add(menu);
        }
コード例 #2
0
        ///<summary>
        /// Default constructor for FerdaToolBar class.
        ///</summary>
        public FerdaToolBar(ILocalizationManager lockManager, IIconProvider provider, 
            Menu.FerdaMenu menu)
            : base()
        {
            this.iconProvider = provider;
            this.menu = menu;

            localizationManager = lockManager;
            ResManager = localizationManager.ResManager;

            SetupFile();
            SetupOther();
        }