コード例 #1
0
        public void SetStyle(Data.Style style)
        {
            this.BackColor = style.ControlBackColor;
            this.ForeColor = style.ForeColor;

            _imageList.Images[0] = Icons.AddColor(Properties.Resources.FolderOpenIcon, this.ForeColor);
            _imageList.Images[1] = Icons.AddColor(Properties.Resources.FolderCloseIcon, this.ForeColor);
            _imageList.Images[2] = Icons.AddColor(Properties.Resources.LocalIcon, this.ForeColor);
            _imageList.Images[3] = Icons.AddColor(Properties.Resources.RemoteIcon, this.ForeColor);
            _imageList.Images[4] = Icons.AddColor(Properties.Resources.ConsoleIcon, this.ForeColor);
        }
コード例 #2
0
        public void SetStyle(Data.Style style)
        {
            this.BackColor                  = style.WindowBackColor;
            this.ForeColor                  = style.ForeColor;
            this.tabs.BackColor             = style.WindowBackColor;
            this.serversTreeLabel.BackColor = style.ControlBackColor;
            this.serversTreeLabel.ForeColor = style.ForeColor;

            this.addServerMenu.Image = Icons.AddColor(Properties.Resources.MenuAdd, style.ForeColor);
            this.settingsMenu.Image  = Icons.AddColor(Properties.Resources.MenuSettings, style.ForeColor);
            this.languageMenu.Image  = Icons.AddColor(Properties.Resources.MenuLanguage, style.ForeColor);

            this.serversTree.SetStyle(style);
            this.addServerMenuItems.SetStyle(style);
            this.settingsMenuItems.SetStyle(style);
            this.languageMenuItems.SetStyle(style);
            this.tabs.SetStyle(style);
        }