private void CursorColorButton_Click(object sender, EventArgs e) { this.colorDialog1.Color = ColorParser.FromString(CursorColorTextBox.Text); DialogResult result = this.colorDialog1.ShowDialog(); if (result == DialogResult.OK) { CursorColorTextBox.Text = ColorParser.ToString(this.colorDialog1.Color); } }
public FavoritesTreeView() { // This prevents SharpDevelop and Visual Studio from both an exception in design mode for controls using this HistoryTreeView and from crashing when opening the // designer for this class. if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { this.ImageList = ConnectionImageHandler.GetProtocolImageList(); this.ImageIndex = 0; this.LineColor = Color.Black; this.SelectedImageIndex = 0; this.ShowNodeToolTips = true; this.AfterExpand += this.OnTreeViewExpand; this.ImageList.ImageSize = new Size(Settings.FavoritesImageWidth, Settings.FavoritesImageHeight); this.ImageList = ConnectionImageHandler.GetProtocolImageList(); this.ImageList.ImageSize = new Size(Settings.FavoritesImageWidth, Settings.FavoritesImageHeight); this.Font = FontParser.FromString(Settings.FavoritesFont); this.BackColor = ColorParser.FromString(Settings.FavoritesFontBackColor); this.ForeColor = ColorParser.FromString(Settings.FavoritesFontForeColor); this.loader = new TreeListLoader(this); } }
public DBTreeView() { this.ImageList = new ImageList(); if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { this.ImageList = ConnectionImageHandler.GetProtocolImageList(); this.ImageIndex = 0; this.LineColor = Color.Black; this.SelectedImageIndex = 0; this.ShowNodeToolTips = true; this.AfterExpand += this.OnTreeViewExpand; this.ImageList.ImageSize = new Size(Settings.FavoritesImageWidth, Settings.FavoritesImageHeight); this.ImageList = ConnectionImageHandler.GetProtocolImageList(); this.ImageList.ImageSize = new Size(Settings.FavoritesImageWidth, Settings.FavoritesImageHeight); this.Font = FontParser.FromString(Settings.FavoritesFont); this.BackColor = ColorParser.FromString(Settings.FavoritesFontBackColor); this.ForeColor = ColorParser.FromString(Settings.FavoritesFontForeColor); this.loader = new TreeListLoader(this); } }
private void AssignTerminalCollors(ConsoleOptions consoleOptions) { this.term.BackColor = ColorParser.FromString(consoleOptions.BackColor); this.term.ForeColor = ColorParser.FromString(consoleOptions.TextColor); this.term.BlinkColor = ColorParser.FromString(consoleOptions.CursorColor); }