コード例 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            VS2013BlueTheme theme = new VS2013BlueTheme();

            this.MainPanel.Theme = theme;
            this.toolFormA       = new ToolFormA();
            this.toolFormB       = new ToolFormB();
            this.toolFormC       = new ToolFormC();
            this.workFormA       = new WorkFormA();
            this.workFormB       = new WorkFormB();
            this.workFormC       = new WorkFormC();
            toolFormA.Show(this.MainPanel, DockState.DockLeft);
            toolFormB.Show(this.MainPanel, DockState.DockLeft);
            toolFormC.Show(this.MainPanel, DockState.DockLeft);
            workFormA.Show(this.MainPanel, DockState.Document);
            workFormB.Show(this.MainPanel, DockState.Document);
            workFormC.Show(this.MainPanel, DockState.Document);
        }
コード例 #2
0
        public frmMain()
        {
            InitializeComponent();

            if (INI == null)
            {
                var parser = new FileIniDataParser();
                INI = parser.ReadFile("Config.ini");
            }
            Text            = VersionInfo(this);
            tsInterval.Text = frmMonitor.DEFAULTINTERVAL.ToString();

            VS2013BlueTheme theme = new VS2013BlueTheme();

            theme.Skin.DockPaneStripSkin.TextFont = new Font("Verdana", 7);
            theme.Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor         = Color.SkyBlue;
            theme.Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor           = Color.DodgerBlue;
            theme.Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor          = Color.White;
            theme.Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.LinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal;
            dockPanel1.Theme = theme;

            LoadLayout();
        }