Example #1
0
        private void UpdateSettings_SingleToolbar(Control a_ToolControl, ToolbarLocations a_Panel)
        {
            Settings.V1._UIToolbar currToolbar = new Settings.V1._UIToolbar();
            currToolbar.Name        = a_ToolControl.Name;
            currToolbar.Location.X0 = a_ToolControl.Location.X;
            currToolbar.Location.Y0 = a_ToolControl.Location.Y;
            currToolbar.Location.CX = a_ToolControl.Size.Width;
            currToolbar.Location.CY = a_ToolControl.Size.Height;
            currToolbar.Panel       = (UInt32)a_Panel;

            m_Engine.m_Settings.UILocations.Toolbars.Add(currToolbar);
        }
Example #2
0
        private ToolStripPanel GetToolPanel(ToolbarLocations a_Panel)
        {
            switch (a_Panel)
            {
            case ToolbarLocations.Top:
                return(TlcToolContainer.TopToolStripPanel);

            case ToolbarLocations.Left:
                return(TlcToolContainer.LeftToolStripPanel);

            case ToolbarLocations.Right:
                return(TlcToolContainer.RightToolStripPanel);

            case ToolbarLocations.Bottom:
                return(TlcToolContainer.BottomToolStripPanel);
            }

            Debug.Assert(false, "Invalid panel location");
            return(TlcToolContainer.TopToolStripPanel);
        }