-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulatorWindow.cs
More file actions
54 lines (50 loc) · 1.8 KB
/
SimulatorWindow.cs
File metadata and controls
54 lines (50 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using vatsys;
namespace Simulator.Plugin
{
public partial class SimulatorWindow : BaseForm
{
public SimulatorWindow()
{
InitializeComponent();
BackColor = Colours.GetColour(Colours.Identities.WindowBackground);
ForeColor = Colours.GetColour(Colours.Identities.InteractiveText);
}
private void ComboBoxDisplay_SelectedIndexChanged(object sender, EventArgs e)
{
switch (comboBoxDisplay.Text)
{
case "Vatpac SweatBox-1":
SimulatorPlugin._server = "https://sweatbox01-training.vatpac.org";
break;
case "Vatpac SweatBox-2":
SimulatorPlugin._server = "https://sweatbox02-training.vatpac.org";
break;
case "Vatmex SweatBox":
SimulatorPlugin._server = "https://sweatbox.vatmex.com.mx";
break;
default:
SimulatorPlugin._server = string.Empty;
break;
}
}
private void SimulatorWindow_Load(object sender, EventArgs e)
{
switch (SimulatorPlugin._server)
{
case "https://sweatbox01-training.vatpac.org":
comboBoxDisplay.Text = "Vatpac SweatBox-1";
return;
case "https://sweatbox02-training.vatpac.org":
comboBoxDisplay.Text = "Vatpac SweatBox-2";
return;
case "https://sweatbox.vatmex.com.mx":
comboBoxDisplay.Text = "Vatmex SweatBox";
return;
default:
comboBoxDisplay.Text = "";
return;
}
}
}
}