public ExplorerFavoritePanel() { this.InitializeComponent(); try { // Load default values string[] strings = new ExplorerBrowser.Explorer().KnownFolders; this.cmbDirectory.Items.AddRange(strings); this.cmbDirectoryDual.Items.AddRange(strings); } catch (System.IO.FileNotFoundException ex) { Kohl.Framework.Logging.Log.Warn("Unable to load load " + this.GetType().Name + " dependencies: " + ex.Message); } this.cmbDirectory.Sorted = true; this.cmbDirectory.Sorted = true; this.cmbExplorerStyle.Items.AddRange(Enum.GetNames(typeof(ExplorerBrowser.ControlStyle))); this.cmbExplorerStyle.SelectedIndexChanged += delegate { this.lblDirectoryDual.Visible = this.cmbDirectoryDual.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryTripple.Visible = this.cmbDirectoryTripple.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryQuad.Visible = this.cmbDirectoryQuad.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); }; this.cmbExplorerStyle.Sorted = true; this.cmbExplorerStyle.Text = ExplorerBrowser.ControlStyle.Single.ToString(); }
public ExplorerFavoritePanel() { this.InitializeComponent(); // Load default values string[] strings = new ExplorerBrowser.Explorer().KnownFolders; this.cmbDirectory.Items.AddRange(strings); this.cmbDirectory.Sorted = true; this.cmbDirectoryDual.Items.AddRange(strings); this.cmbDirectory.Sorted = true; this.cmbExplorerStyle.Items.AddRange(Enum.GetNames(typeof(ExplorerBrowser.ControlStyle))); this.cmbExplorerStyle.SelectedIndexChanged += delegate { this.lblDirectoryDual.Visible = this.cmbDirectoryDual.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryTripple.Visible = this.cmbDirectoryTripple.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryQuad.Visible = this.cmbDirectoryQuad.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); }; this.cmbExplorerStyle.Sorted = true; this.cmbExplorerStyle.Text = ExplorerBrowser.ControlStyle.Single.ToString(); }
public ExplorerFavoritePanel() { this.InitializeComponent(); // Load default values string[] strings = new ExplorerBrowser.Explorer().KnownFolders; this.cmbDirectory.Items.AddRange(strings); this.cmbDirectory.Sorted = true; this.cmbDirectoryDual.Items.AddRange(strings); this.cmbDirectory.Sorted = true; this.cmbExplorerStyle.Items.AddRange(Enum.GetNames(typeof(ExplorerBrowser.ControlStyle))); this.cmbExplorerStyle.SelectedIndexChanged += delegate { this.lblDirectoryDual.Visible = this.cmbDirectoryDual.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.DualHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryTripple.Visible = this.cmbDirectoryTripple.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleBottom.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleLeft.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleRight.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleTop.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.TrippleVertical.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); this.lblDirectoryQuad.Visible = this.cmbDirectoryQuad.Visible = (this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.Quad.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadHorizontal.ToString().ToLower() || this.cmbExplorerStyle.Text.ToLower() == ExplorerBrowser.ControlStyle.QuadVertical.ToString().ToLower()); }; this.cmbExplorerStyle.Sorted = true; this.cmbExplorerStyle.Text = ExplorerBrowser.ControlStyle.Single.ToString(); }