Example #1
0
        public ToolBarMenuItem(IToolBar toolBar)
        {
            // store the toolbar and create a condition to
            // control its visibility
            m_toolBar = toolBar;
            // preserve the existing visible state, in case it
            // was set to true in the toolbar constructor
            m_toolBarVisibleCondition = new ConcreteCondition(m_toolBar.Visible);
            m_toolBar.VisibleCondition = m_toolBarVisibleCondition;

            ID = toolBar.ID;
            Header = toolBar.Name;
            InsertRelativeToID = toolBar.InsertRelativeToID;
            BeforeOrAfter = toolBar.BeforeOrAfter;
            IsCheckable = true;
            IsChecked = toolBar.Visible;
        }
Example #2
0
 public SolutionToolBar()
 {
     Name = Resources.Strings.Solution_ToolBar_Name;
     VisibleCondition = new ConcreteCondition(true);
 }