diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs index 656b395..42bb4e1 100644 --- a/Enigma/StationsGUI/AdminStationView.Designer.cs +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -30,6 +30,7 @@ private void InitializeComponent() { this.adminTabControl = new MetroFramework.Controls.MetroTabControl(); this.menuTab = new MetroFramework.Controls.MetroTabPage(); + this.menuSelectionBox = new System.Windows.Forms.ComboBox(); this.menuListBox = new System.Windows.Forms.ListBox(); this.menuSaveButton = new MetroFramework.Controls.MetroButton(); this.menuRevertButton = new MetroFramework.Controls.MetroButton(); @@ -90,7 +91,6 @@ private void InitializeComponent() this.stationRenameButton = new MetroFramework.Controls.MetroButton(); this.stationAddButton = new MetroFramework.Controls.MetroButton(); this.metroLabel3 = new MetroFramework.Controls.MetroLabel(); - this.menuSelectionBox = new System.Windows.Forms.ComboBox(); this.adminTabControl.SuspendLayout(); this.menuTab.SuspendLayout(); this.groupBox1.SuspendLayout(); @@ -146,6 +146,15 @@ private void InitializeComponent() this.menuTab.VerticalScrollbarHighlightOnWheel = false; this.menuTab.VerticalScrollbarSize = 10; // + // menuSelectionBox + // + this.menuSelectionBox.FormattingEnabled = true; + this.menuSelectionBox.Location = new System.Drawing.Point(169, 35); + this.menuSelectionBox.Name = "menuSelectionBox"; + this.menuSelectionBox.Size = new System.Drawing.Size(355, 28); + this.menuSelectionBox.TabIndex = 12; + this.menuSelectionBox.SelectedIndexChanged += new System.EventHandler(this.menuSelectionBox_SelectedIndexChanged); + // // menuListBox // this.menuListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -1106,14 +1115,6 @@ private void InitializeComponent() this.metroLabel3.Text = "Select Stations"; this.metroLabel3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - // menuSelectionBox - // - this.menuSelectionBox.FormattingEnabled = true; - this.menuSelectionBox.Location = new System.Drawing.Point(169, 35); - this.menuSelectionBox.Name = "menuSelectionBox"; - this.menuSelectionBox.Size = new System.Drawing.Size(355, 28); - this.menuSelectionBox.TabIndex = 12; - // // AdminStationView // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); diff --git a/Enigma/StationsGUI/AdminStationView.cs b/Enigma/StationsGUI/AdminStationView.cs index 76afca5..314f8a1 100644 --- a/Enigma/StationsGUI/AdminStationView.cs +++ b/Enigma/StationsGUI/AdminStationView.cs @@ -137,5 +137,12 @@ private void adminTabControl_SelectedIndexChanged(object sender, EventArgs e) } } + + private void menuSelectionBox_SelectedIndexChanged(object sender, EventArgs e) + { + if (menuSelectionBox.SelectedIndex != 0) { + + } + } } }