diff --git a/Force Manager/AddSquadronForm.Designer.cs b/Force Manager/AddSquadronForm.Designer.cs new file mode 100644 index 0000000..1ddb6b1 --- /dev/null +++ b/Force Manager/AddSquadronForm.Designer.cs @@ -0,0 +1,83 @@ +namespace Force_Manager +{ + partial class AddSquadronForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button_addSquadron = new System.Windows.Forms.Button(); + this.textBox_squadronName = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // button_addSquadron + // + this.button_addSquadron.Location = new System.Drawing.Point(205, 18); + this.button_addSquadron.Name = "button_addSquadron"; + this.button_addSquadron.Size = new System.Drawing.Size(75, 23); + this.button_addSquadron.TabIndex = 0; + this.button_addSquadron.Text = "Add Squadron"; + this.button_addSquadron.UseVisualStyleBackColor = true; + this.button_addSquadron.Click += new System.EventHandler(this.button_addSquadron_Click); + // + // textBox_squadronName + // + this.textBox_squadronName.Location = new System.Drawing.Point(99, 19); + this.textBox_squadronName.Name = "textBox_squadronName"; + this.textBox_squadronName.Size = new System.Drawing.Size(100, 23); + this.textBox_squadronName.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(0, 22); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(93, 15); + this.label1.TabIndex = 2; + this.label1.Text = "Squadron Name"; + // + // AddSquadronForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(306, 56); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox_squadronName); + this.Controls.Add(this.button_addSquadron); + this.Name = "AddSquadronForm"; + this.Text = "AddSquadronForm"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private Button button_addSquadron; + private TextBox textBox_squadronName; + private Label label1; + } +} \ No newline at end of file diff --git a/Force Manager/AddSquadronForm.cs b/Force Manager/AddSquadronForm.cs new file mode 100644 index 0000000..351adcd --- /dev/null +++ b/Force Manager/AddSquadronForm.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Force_Manager +{ + public partial class AddSquadronForm : Form + { + private Form1 menu; + public AddSquadronForm(Form1 menu) + { + InitializeComponent(); + this.menu = menu; + } + + private void button_addSquadron_Click(object sender, EventArgs e) + { + if (textBox_squadronName.Text == null || textBox_squadronName.Text == string.Empty) + { + MessageBox.Show("Please provide a player name"); + } + else + { + menu.Button_AddSquadron_Pressed(textBox_squadronName.Text); + this.Close(); + } + } + } +} diff --git a/Force Manager/AddSquadronForm.resx b/Force Manager/AddSquadronForm.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Force Manager/AddSquadronForm.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Force Manager/Form1.Designer.cs b/Force Manager/Form1.Designer.cs index 372d749..1a0530e 100644 --- a/Force Manager/Form1.Designer.cs +++ b/Force Manager/Form1.Designer.cs @@ -30,6 +30,7 @@ private void InitializeComponent() { this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); + this.radioButton_includeSquadrons = new System.Windows.Forms.RadioButton(); this.button_campaign_remove = new System.Windows.Forms.Button(); this.button_campaign_decreaseDisplay = new System.Windows.Forms.Button(); this.button_campaign_increaseDisplay = new System.Windows.Forms.Button(); @@ -71,6 +72,7 @@ private void InitializeComponent() this.button_Campaign_Safe = new System.Windows.Forms.Button(); this.button_Campaign_New = new System.Windows.Forms.Button(); this.tabPage2 = new System.Windows.Forms.TabPage(); + this.radioButton_includeSquadrons_SM = new System.Windows.Forms.RadioButton(); this.radioButton_includePlayerStatistic = new System.Windows.Forms.RadioButton(); this.button_sm_reanalyze = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); @@ -112,7 +114,12 @@ private void InitializeComponent() this.button_addPlayer = new System.Windows.Forms.Button(); this.listBox_players = new System.Windows.Forms.ListBox(); this.tabPage16 = new System.Windows.Forms.TabPage(); - this.label4 = new System.Windows.Forms.Label(); + this.button_squadron_safe = new System.Windows.Forms.Button(); + this.button_squadron_load = new System.Windows.Forms.Button(); + this.button_squadron_new = new System.Windows.Forms.Button(); + this.button_squadron_remove = new System.Windows.Forms.Button(); + this.button_squadron_add = new System.Windows.Forms.Button(); + this.listBox_Squadrons = new System.Windows.Forms.ListBox(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.listBox_sam_campaign_blue.SuspendLayout(); @@ -153,15 +160,15 @@ private void InitializeComponent() // this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Location = new System.Drawing.Point(421, 20); - this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabControl1.Location = new System.Drawing.Point(295, 12); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1623, 1160); + this.tabControl1.Size = new System.Drawing.Size(1136, 696); this.tabControl1.TabIndex = 0; // // tabPage1 // + this.tabPage1.Controls.Add(this.radioButton_includeSquadrons); this.tabPage1.Controls.Add(this.button_campaign_remove); this.tabPage1.Controls.Add(this.button_campaign_decreaseDisplay); this.tabPage1.Controls.Add(this.button_campaign_increaseDisplay); @@ -178,20 +185,31 @@ private void InitializeComponent() this.tabPage1.Controls.Add(this.button_Campaign_Load); this.tabPage1.Controls.Add(this.button_Campaign_Safe); this.tabPage1.Controls.Add(this.button_Campaign_New); - this.tabPage1.Location = new System.Drawing.Point(4, 34); - this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage1.Location = new System.Drawing.Point(4, 24); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage1.Size = new System.Drawing.Size(1615, 1122); + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(1128, 668); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Campaign"; this.tabPage1.UseVisualStyleBackColor = true; // + // radioButton_includeSquadrons + // + this.radioButton_includeSquadrons.AutoSize = true; + this.radioButton_includeSquadrons.Location = new System.Drawing.Point(6, 259); + this.radioButton_includeSquadrons.Name = "radioButton_includeSquadrons"; + this.radioButton_includeSquadrons.Size = new System.Drawing.Size(123, 19); + this.radioButton_includeSquadrons.TabIndex = 17; + this.radioButton_includeSquadrons.TabStop = true; + this.radioButton_includeSquadrons.Text = "Include Squadrons"; + this.radioButton_includeSquadrons.UseVisualStyleBackColor = true; + // // button_campaign_remove // - this.button_campaign_remove.Location = new System.Drawing.Point(7, 223); + this.button_campaign_remove.Location = new System.Drawing.Point(5, 134); + this.button_campaign_remove.Margin = new System.Windows.Forms.Padding(2); this.button_campaign_remove.Name = "button_campaign_remove"; - this.button_campaign_remove.Size = new System.Drawing.Size(236, 36); + this.button_campaign_remove.Size = new System.Drawing.Size(165, 22); this.button_campaign_remove.TabIndex = 16; this.button_campaign_remove.Text = "Remove displayed mission"; this.button_campaign_remove.UseVisualStyleBackColor = true; @@ -199,9 +217,10 @@ private void InitializeComponent() // // button_campaign_decreaseDisplay // - this.button_campaign_decreaseDisplay.Location = new System.Drawing.Point(667, 42); + this.button_campaign_decreaseDisplay.Location = new System.Drawing.Point(467, 25); + this.button_campaign_decreaseDisplay.Margin = new System.Windows.Forms.Padding(2); this.button_campaign_decreaseDisplay.Name = "button_campaign_decreaseDisplay"; - this.button_campaign_decreaseDisplay.Size = new System.Drawing.Size(42, 37); + this.button_campaign_decreaseDisplay.Size = new System.Drawing.Size(29, 22); this.button_campaign_decreaseDisplay.TabIndex = 15; this.button_campaign_decreaseDisplay.Text = "<"; this.button_campaign_decreaseDisplay.UseVisualStyleBackColor = true; @@ -209,9 +228,10 @@ private void InitializeComponent() // // button_campaign_increaseDisplay // - this.button_campaign_increaseDisplay.Location = new System.Drawing.Point(715, 42); + this.button_campaign_increaseDisplay.Location = new System.Drawing.Point(500, 25); + this.button_campaign_increaseDisplay.Margin = new System.Windows.Forms.Padding(2); this.button_campaign_increaseDisplay.Name = "button_campaign_increaseDisplay"; - this.button_campaign_increaseDisplay.Size = new System.Drawing.Size(39, 37); + this.button_campaign_increaseDisplay.Size = new System.Drawing.Size(27, 22); this.button_campaign_increaseDisplay.TabIndex = 14; this.button_campaign_increaseDisplay.Text = ">"; this.button_campaign_increaseDisplay.UseVisualStyleBackColor = true; @@ -220,9 +240,10 @@ private void InitializeComponent() // label_displayCampaignMission // this.label_displayCampaignMission.AutoSize = true; - this.label_displayCampaignMission.Location = new System.Drawing.Point(537, 8); + this.label_displayCampaignMission.Location = new System.Drawing.Point(376, 5); + this.label_displayCampaignMission.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label_displayCampaignMission.Name = "label_displayCampaignMission"; - this.label_displayCampaignMission.Size = new System.Drawing.Size(140, 25); + this.label_displayCampaignMission.Size = new System.Drawing.Size(92, 15); this.label_displayCampaignMission.TabIndex = 13; this.label_displayCampaignMission.Text = "Display Mission:"; // @@ -234,21 +255,19 @@ private void InitializeComponent() this.listBox_sam_campaign_blue.Controls.Add(this.tabPage26); this.listBox_sam_campaign_blue.Controls.Add(this.tabPage27); this.listBox_sam_campaign_blue.Controls.Add(this.tabPage28); - this.listBox_sam_campaign_blue.Location = new System.Drawing.Point(938, 96); - this.listBox_sam_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_sam_campaign_blue.Location = new System.Drawing.Point(657, 58); this.listBox_sam_campaign_blue.Name = "listBox_sam_campaign_blue"; this.listBox_sam_campaign_blue.SelectedIndex = 0; - this.listBox_sam_campaign_blue.Size = new System.Drawing.Size(647, 970); + this.listBox_sam_campaign_blue.Size = new System.Drawing.Size(453, 582); this.listBox_sam_campaign_blue.TabIndex = 12; // // tabPage23 // this.tabPage23.Controls.Add(this.listBox_aircraft_campaign_blue); - this.tabPage23.Location = new System.Drawing.Point(4, 34); - this.tabPage23.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage23.Location = new System.Drawing.Point(4, 24); this.tabPage23.Name = "tabPage23"; - this.tabPage23.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage23.Size = new System.Drawing.Size(639, 932); + this.tabPage23.Padding = new System.Windows.Forms.Padding(3); + this.tabPage23.Size = new System.Drawing.Size(445, 554); this.tabPage23.TabIndex = 0; this.tabPage23.Text = "Aircraft"; this.tabPage23.UseVisualStyleBackColor = true; @@ -257,21 +276,19 @@ private void InitializeComponent() // this.listBox_aircraft_campaign_blue.FormattingEnabled = true; this.listBox_aircraft_campaign_blue.HorizontalScrollbar = true; - this.listBox_aircraft_campaign_blue.ItemHeight = 25; - this.listBox_aircraft_campaign_blue.Location = new System.Drawing.Point(11, 10); - this.listBox_aircraft_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_aircraft_campaign_blue.ItemHeight = 15; + this.listBox_aircraft_campaign_blue.Location = new System.Drawing.Point(8, 6); this.listBox_aircraft_campaign_blue.Name = "listBox_aircraft_campaign_blue"; - this.listBox_aircraft_campaign_blue.Size = new System.Drawing.Size(614, 904); + this.listBox_aircraft_campaign_blue.Size = new System.Drawing.Size(431, 544); this.listBox_aircraft_campaign_blue.TabIndex = 0; // // tabPage24 // this.tabPage24.Controls.Add(this.listBox_helicopter_campaign_blue); - this.tabPage24.Location = new System.Drawing.Point(4, 34); - this.tabPage24.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage24.Location = new System.Drawing.Point(4, 24); this.tabPage24.Name = "tabPage24"; - this.tabPage24.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage24.Size = new System.Drawing.Size(639, 932); + this.tabPage24.Padding = new System.Windows.Forms.Padding(3); + this.tabPage24.Size = new System.Drawing.Size(445, 554); this.tabPage24.TabIndex = 1; this.tabPage24.Text = "Helicopter"; this.tabPage24.UseVisualStyleBackColor = true; @@ -280,20 +297,18 @@ private void InitializeComponent() // this.listBox_helicopter_campaign_blue.FormattingEnabled = true; this.listBox_helicopter_campaign_blue.HorizontalScrollbar = true; - this.listBox_helicopter_campaign_blue.ItemHeight = 25; - this.listBox_helicopter_campaign_blue.Location = new System.Drawing.Point(7, 13); - this.listBox_helicopter_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_helicopter_campaign_blue.ItemHeight = 15; + this.listBox_helicopter_campaign_blue.Location = new System.Drawing.Point(5, 8); this.listBox_helicopter_campaign_blue.Name = "listBox_helicopter_campaign_blue"; - this.listBox_helicopter_campaign_blue.Size = new System.Drawing.Size(623, 879); + this.listBox_helicopter_campaign_blue.Size = new System.Drawing.Size(437, 529); this.listBox_helicopter_campaign_blue.TabIndex = 0; // // tabPage25 // this.tabPage25.Controls.Add(this.listBox_aaa_campaign_blue); - this.tabPage25.Location = new System.Drawing.Point(4, 34); - this.tabPage25.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage25.Location = new System.Drawing.Point(4, 24); this.tabPage25.Name = "tabPage25"; - this.tabPage25.Size = new System.Drawing.Size(639, 932); + this.tabPage25.Size = new System.Drawing.Size(445, 554); this.tabPage25.TabIndex = 2; this.tabPage25.Text = "AAA/SAM"; this.tabPage25.UseVisualStyleBackColor = true; @@ -302,20 +317,18 @@ private void InitializeComponent() // this.listBox_aaa_campaign_blue.FormattingEnabled = true; this.listBox_aaa_campaign_blue.HorizontalScrollbar = true; - this.listBox_aaa_campaign_blue.ItemHeight = 25; - this.listBox_aaa_campaign_blue.Location = new System.Drawing.Point(4, 8); - this.listBox_aaa_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_aaa_campaign_blue.ItemHeight = 15; + this.listBox_aaa_campaign_blue.Location = new System.Drawing.Point(3, 5); this.listBox_aaa_campaign_blue.Name = "listBox_aaa_campaign_blue"; - this.listBox_aaa_campaign_blue.Size = new System.Drawing.Size(625, 904); + this.listBox_aaa_campaign_blue.Size = new System.Drawing.Size(439, 544); this.listBox_aaa_campaign_blue.TabIndex = 0; // // tabPage26 // this.tabPage26.Controls.Add(this.listBox_tank_campaign_blue); - this.tabPage26.Location = new System.Drawing.Point(4, 34); - this.tabPage26.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage26.Location = new System.Drawing.Point(4, 24); this.tabPage26.Name = "tabPage26"; - this.tabPage26.Size = new System.Drawing.Size(639, 932); + this.tabPage26.Size = new System.Drawing.Size(445, 554); this.tabPage26.TabIndex = 3; this.tabPage26.Text = "Armored"; this.tabPage26.UseVisualStyleBackColor = true; @@ -324,20 +337,18 @@ private void InitializeComponent() // this.listBox_tank_campaign_blue.FormattingEnabled = true; this.listBox_tank_campaign_blue.HorizontalScrollbar = true; - this.listBox_tank_campaign_blue.ItemHeight = 25; - this.listBox_tank_campaign_blue.Location = new System.Drawing.Point(11, 15); - this.listBox_tank_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_tank_campaign_blue.ItemHeight = 15; + this.listBox_tank_campaign_blue.Location = new System.Drawing.Point(8, 9); this.listBox_tank_campaign_blue.Name = "listBox_tank_campaign_blue"; - this.listBox_tank_campaign_blue.Size = new System.Drawing.Size(618, 879); + this.listBox_tank_campaign_blue.Size = new System.Drawing.Size(434, 529); this.listBox_tank_campaign_blue.TabIndex = 0; // // tabPage27 // this.tabPage27.Controls.Add(this.listBox_ship_campaign_blue); - this.tabPage27.Location = new System.Drawing.Point(4, 34); - this.tabPage27.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage27.Location = new System.Drawing.Point(4, 24); this.tabPage27.Name = "tabPage27"; - this.tabPage27.Size = new System.Drawing.Size(639, 932); + this.tabPage27.Size = new System.Drawing.Size(445, 554); this.tabPage27.TabIndex = 4; this.tabPage27.Text = "Ship"; this.tabPage27.UseVisualStyleBackColor = true; @@ -346,20 +357,18 @@ private void InitializeComponent() // this.listBox_ship_campaign_blue.FormattingEnabled = true; this.listBox_ship_campaign_blue.HorizontalScrollbar = true; - this.listBox_ship_campaign_blue.ItemHeight = 25; - this.listBox_ship_campaign_blue.Location = new System.Drawing.Point(14, 15); - this.listBox_ship_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_ship_campaign_blue.ItemHeight = 15; + this.listBox_ship_campaign_blue.Location = new System.Drawing.Point(10, 9); this.listBox_ship_campaign_blue.Name = "listBox_ship_campaign_blue"; - this.listBox_ship_campaign_blue.Size = new System.Drawing.Size(615, 879); + this.listBox_ship_campaign_blue.Size = new System.Drawing.Size(432, 529); this.listBox_ship_campaign_blue.TabIndex = 0; // // tabPage28 // this.tabPage28.Controls.Add(this.listBox_other_campaign_blue); - this.tabPage28.Location = new System.Drawing.Point(4, 34); - this.tabPage28.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage28.Location = new System.Drawing.Point(4, 24); this.tabPage28.Name = "tabPage28"; - this.tabPage28.Size = new System.Drawing.Size(639, 932); + this.tabPage28.Size = new System.Drawing.Size(445, 554); this.tabPage28.TabIndex = 5; this.tabPage28.Text = "Other"; this.tabPage28.UseVisualStyleBackColor = true; @@ -368,11 +377,10 @@ private void InitializeComponent() // this.listBox_other_campaign_blue.FormattingEnabled = true; this.listBox_other_campaign_blue.HorizontalScrollbar = true; - this.listBox_other_campaign_blue.ItemHeight = 25; - this.listBox_other_campaign_blue.Location = new System.Drawing.Point(16, 12); - this.listBox_other_campaign_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_other_campaign_blue.ItemHeight = 15; + this.listBox_other_campaign_blue.Location = new System.Drawing.Point(11, 7); this.listBox_other_campaign_blue.Name = "listBox_other_campaign_blue"; - this.listBox_other_campaign_blue.Size = new System.Drawing.Size(600, 879); + this.listBox_other_campaign_blue.Size = new System.Drawing.Size(421, 529); this.listBox_other_campaign_blue.TabIndex = 0; // // listBox_helicopter_campaign_red @@ -383,21 +391,19 @@ private void InitializeComponent() this.listBox_helicopter_campaign_red.Controls.Add(this.tabPage20); this.listBox_helicopter_campaign_red.Controls.Add(this.tabPage21); this.listBox_helicopter_campaign_red.Controls.Add(this.tabPage22); - this.listBox_helicopter_campaign_red.Location = new System.Drawing.Point(250, 100); - this.listBox_helicopter_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_helicopter_campaign_red.Location = new System.Drawing.Point(175, 60); this.listBox_helicopter_campaign_red.Name = "listBox_helicopter_campaign_red"; this.listBox_helicopter_campaign_red.SelectedIndex = 0; - this.listBox_helicopter_campaign_red.Size = new System.Drawing.Size(647, 970); + this.listBox_helicopter_campaign_red.Size = new System.Drawing.Size(453, 582); this.listBox_helicopter_campaign_red.TabIndex = 11; // // tabPage17 // this.tabPage17.Controls.Add(this.listBox_aircraft_campaign_red); - this.tabPage17.Location = new System.Drawing.Point(4, 34); - this.tabPage17.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage17.Location = new System.Drawing.Point(4, 24); this.tabPage17.Name = "tabPage17"; - this.tabPage17.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage17.Size = new System.Drawing.Size(639, 932); + this.tabPage17.Padding = new System.Windows.Forms.Padding(3); + this.tabPage17.Size = new System.Drawing.Size(445, 554); this.tabPage17.TabIndex = 0; this.tabPage17.Text = "Aircraft"; this.tabPage17.UseVisualStyleBackColor = true; @@ -406,21 +412,19 @@ private void InitializeComponent() // this.listBox_aircraft_campaign_red.FormattingEnabled = true; this.listBox_aircraft_campaign_red.HorizontalScrollbar = true; - this.listBox_aircraft_campaign_red.ItemHeight = 25; - this.listBox_aircraft_campaign_red.Location = new System.Drawing.Point(11, 10); - this.listBox_aircraft_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_aircraft_campaign_red.ItemHeight = 15; + this.listBox_aircraft_campaign_red.Location = new System.Drawing.Point(8, 6); this.listBox_aircraft_campaign_red.Name = "listBox_aircraft_campaign_red"; - this.listBox_aircraft_campaign_red.Size = new System.Drawing.Size(614, 904); + this.listBox_aircraft_campaign_red.Size = new System.Drawing.Size(431, 544); this.listBox_aircraft_campaign_red.TabIndex = 0; // // tabPage18 // this.tabPage18.Controls.Add(this.listBox_heli_campaign_red); - this.tabPage18.Location = new System.Drawing.Point(4, 34); - this.tabPage18.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage18.Location = new System.Drawing.Point(4, 24); this.tabPage18.Name = "tabPage18"; - this.tabPage18.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage18.Size = new System.Drawing.Size(639, 932); + this.tabPage18.Padding = new System.Windows.Forms.Padding(3); + this.tabPage18.Size = new System.Drawing.Size(445, 554); this.tabPage18.TabIndex = 1; this.tabPage18.Text = "Helicopter"; this.tabPage18.UseVisualStyleBackColor = true; @@ -429,20 +433,18 @@ private void InitializeComponent() // this.listBox_heli_campaign_red.FormattingEnabled = true; this.listBox_heli_campaign_red.HorizontalScrollbar = true; - this.listBox_heli_campaign_red.ItemHeight = 25; - this.listBox_heli_campaign_red.Location = new System.Drawing.Point(7, 13); - this.listBox_heli_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_heli_campaign_red.ItemHeight = 15; + this.listBox_heli_campaign_red.Location = new System.Drawing.Point(5, 8); this.listBox_heli_campaign_red.Name = "listBox_heli_campaign_red"; - this.listBox_heli_campaign_red.Size = new System.Drawing.Size(623, 879); + this.listBox_heli_campaign_red.Size = new System.Drawing.Size(437, 529); this.listBox_heli_campaign_red.TabIndex = 0; // // tabPage19 // this.tabPage19.Controls.Add(this.listBox_sam_campaign_red); - this.tabPage19.Location = new System.Drawing.Point(4, 34); - this.tabPage19.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage19.Location = new System.Drawing.Point(4, 24); this.tabPage19.Name = "tabPage19"; - this.tabPage19.Size = new System.Drawing.Size(639, 932); + this.tabPage19.Size = new System.Drawing.Size(445, 554); this.tabPage19.TabIndex = 2; this.tabPage19.Text = "AAA/SAM"; this.tabPage19.UseVisualStyleBackColor = true; @@ -451,20 +453,18 @@ private void InitializeComponent() // this.listBox_sam_campaign_red.FormattingEnabled = true; this.listBox_sam_campaign_red.HorizontalScrollbar = true; - this.listBox_sam_campaign_red.ItemHeight = 25; - this.listBox_sam_campaign_red.Location = new System.Drawing.Point(4, 8); - this.listBox_sam_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_sam_campaign_red.ItemHeight = 15; + this.listBox_sam_campaign_red.Location = new System.Drawing.Point(3, 5); this.listBox_sam_campaign_red.Name = "listBox_sam_campaign_red"; - this.listBox_sam_campaign_red.Size = new System.Drawing.Size(625, 904); + this.listBox_sam_campaign_red.Size = new System.Drawing.Size(439, 544); this.listBox_sam_campaign_red.TabIndex = 0; // // tabPage20 // this.tabPage20.Controls.Add(this.listBox_tank_campaign_red); - this.tabPage20.Location = new System.Drawing.Point(4, 34); - this.tabPage20.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage20.Location = new System.Drawing.Point(4, 24); this.tabPage20.Name = "tabPage20"; - this.tabPage20.Size = new System.Drawing.Size(639, 932); + this.tabPage20.Size = new System.Drawing.Size(445, 554); this.tabPage20.TabIndex = 3; this.tabPage20.Text = "Armored"; this.tabPage20.UseVisualStyleBackColor = true; @@ -473,21 +473,19 @@ private void InitializeComponent() // this.listBox_tank_campaign_red.FormattingEnabled = true; this.listBox_tank_campaign_red.HorizontalScrollbar = true; - this.listBox_tank_campaign_red.ItemHeight = 25; - this.listBox_tank_campaign_red.Location = new System.Drawing.Point(11, 15); - this.listBox_tank_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_tank_campaign_red.ItemHeight = 15; + this.listBox_tank_campaign_red.Location = new System.Drawing.Point(8, 9); this.listBox_tank_campaign_red.Name = "listBox_tank_campaign_red"; - this.listBox_tank_campaign_red.Size = new System.Drawing.Size(618, 879); + this.listBox_tank_campaign_red.Size = new System.Drawing.Size(434, 529); this.listBox_tank_campaign_red.TabIndex = 0; this.listBox_tank_campaign_red.SelectedIndexChanged += new System.EventHandler(this.listBox4_SelectedIndexChanged); // // tabPage21 // this.tabPage21.Controls.Add(this.listBox_ship_campaign_red); - this.tabPage21.Location = new System.Drawing.Point(4, 34); - this.tabPage21.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage21.Location = new System.Drawing.Point(4, 24); this.tabPage21.Name = "tabPage21"; - this.tabPage21.Size = new System.Drawing.Size(639, 932); + this.tabPage21.Size = new System.Drawing.Size(445, 554); this.tabPage21.TabIndex = 4; this.tabPage21.Text = "Ship"; this.tabPage21.UseVisualStyleBackColor = true; @@ -496,20 +494,18 @@ private void InitializeComponent() // this.listBox_ship_campaign_red.FormattingEnabled = true; this.listBox_ship_campaign_red.HorizontalScrollbar = true; - this.listBox_ship_campaign_red.ItemHeight = 25; - this.listBox_ship_campaign_red.Location = new System.Drawing.Point(14, 15); - this.listBox_ship_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_ship_campaign_red.ItemHeight = 15; + this.listBox_ship_campaign_red.Location = new System.Drawing.Point(10, 9); this.listBox_ship_campaign_red.Name = "listBox_ship_campaign_red"; - this.listBox_ship_campaign_red.Size = new System.Drawing.Size(615, 879); + this.listBox_ship_campaign_red.Size = new System.Drawing.Size(432, 529); this.listBox_ship_campaign_red.TabIndex = 0; // // tabPage22 // this.tabPage22.Controls.Add(this.listBox_other_campaign_red); - this.tabPage22.Location = new System.Drawing.Point(4, 34); - this.tabPage22.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage22.Location = new System.Drawing.Point(4, 24); this.tabPage22.Name = "tabPage22"; - this.tabPage22.Size = new System.Drawing.Size(639, 932); + this.tabPage22.Size = new System.Drawing.Size(445, 554); this.tabPage22.TabIndex = 5; this.tabPage22.Text = "Other"; this.tabPage22.UseVisualStyleBackColor = true; @@ -518,11 +514,10 @@ private void InitializeComponent() // this.listBox_other_campaign_red.FormattingEnabled = true; this.listBox_other_campaign_red.HorizontalScrollbar = true; - this.listBox_other_campaign_red.ItemHeight = 25; - this.listBox_other_campaign_red.Location = new System.Drawing.Point(16, 12); - this.listBox_other_campaign_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_other_campaign_red.ItemHeight = 15; + this.listBox_other_campaign_red.Location = new System.Drawing.Point(11, 7); this.listBox_other_campaign_red.Name = "listBox_other_campaign_red"; - this.listBox_other_campaign_red.Size = new System.Drawing.Size(600, 879); + this.listBox_other_campaign_red.Size = new System.Drawing.Size(421, 529); this.listBox_other_campaign_red.TabIndex = 0; // // label5 @@ -530,38 +525,42 @@ private void InitializeComponent() this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.label5.ForeColor = System.Drawing.Color.Blue; - this.label5.Location = new System.Drawing.Point(938, 47); + this.label5.Location = new System.Drawing.Point(657, 28); + this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(107, 32); + this.label5.Size = new System.Drawing.Size(133, 21); this.label5.TabIndex = 10; - this.label5.Text = "Red Side"; + this.label5.Text = "Blue Side Preview"; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.label1.ForeColor = System.Drawing.Color.Red; - this.label1.Location = new System.Drawing.Point(250, 47); + this.label1.Location = new System.Drawing.Point(175, 28); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(107, 32); + this.label1.Size = new System.Drawing.Size(130, 21); this.label1.TabIndex = 9; - this.label1.Text = "Red Side"; + this.label1.Text = "Red Side Preview"; // // label_missionCountCampaign // this.label_missionCountCampaign.AutoSize = true; - this.label_missionCountCampaign.Location = new System.Drawing.Point(250, 8); + this.label_missionCountCampaign.Location = new System.Drawing.Point(175, 5); + this.label_missionCountCampaign.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label_missionCountCampaign.Name = "label_missionCountCampaign"; - this.label_missionCountCampaign.Size = new System.Drawing.Size(127, 25); + this.label_missionCountCampaign.Size = new System.Drawing.Size(85, 15); this.label_missionCountCampaign.TabIndex = 8; this.label_missionCountCampaign.Text = "Mission count:"; // // radioButton_campaign_includePlayer // this.radioButton_campaign_includePlayer.AutoSize = true; - this.radioButton_campaign_includePlayer.Location = new System.Drawing.Point(7, 392); + this.radioButton_campaign_includePlayer.Location = new System.Drawing.Point(5, 235); + this.radioButton_campaign_includePlayer.Margin = new System.Windows.Forms.Padding(2); this.radioButton_campaign_includePlayer.Name = "radioButton_campaign_includePlayer"; - this.radioButton_campaign_includePlayer.Size = new System.Drawing.Size(154, 29); + this.radioButton_campaign_includePlayer.Size = new System.Drawing.Size(104, 19); this.radioButton_campaign_includePlayer.TabIndex = 7; this.radioButton_campaign_includePlayer.TabStop = true; this.radioButton_campaign_includePlayer.Text = "Include Players"; @@ -569,9 +568,10 @@ private void InitializeComponent() // // button_Campaign_exportCampaignStatistic // - this.button_Campaign_exportCampaignStatistic.Location = new System.Drawing.Point(7, 307); + this.button_Campaign_exportCampaignStatistic.Location = new System.Drawing.Point(5, 184); + this.button_Campaign_exportCampaignStatistic.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_exportCampaignStatistic.Name = "button_Campaign_exportCampaignStatistic"; - this.button_Campaign_exportCampaignStatistic.Size = new System.Drawing.Size(201, 79); + this.button_Campaign_exportCampaignStatistic.Size = new System.Drawing.Size(141, 47); this.button_Campaign_exportCampaignStatistic.TabIndex = 6; this.button_Campaign_exportCampaignStatistic.Text = "Export complete campaign statistic"; this.button_Campaign_exportCampaignStatistic.UseVisualStyleBackColor = true; @@ -579,9 +579,10 @@ private void InitializeComponent() // // button_Campaign_ExportCurrentMission // - this.button_Campaign_ExportCurrentMission.Location = new System.Drawing.Point(7, 265); + this.button_Campaign_ExportCurrentMission.Location = new System.Drawing.Point(5, 159); + this.button_Campaign_ExportCurrentMission.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_ExportCurrentMission.Name = "button_Campaign_ExportCurrentMission"; - this.button_Campaign_ExportCurrentMission.Size = new System.Drawing.Size(201, 36); + this.button_Campaign_ExportCurrentMission.Size = new System.Drawing.Size(141, 22); this.button_Campaign_ExportCurrentMission.TabIndex = 5; this.button_Campaign_ExportCurrentMission.Text = "Export current mission"; this.button_Campaign_ExportCurrentMission.UseVisualStyleBackColor = true; @@ -589,9 +590,10 @@ private void InitializeComponent() // // button_Campaign_Add // - this.button_Campaign_Add.Location = new System.Drawing.Point(7, 174); + this.button_Campaign_Add.Location = new System.Drawing.Point(5, 104); + this.button_Campaign_Add.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_Add.Name = "button_Campaign_Add"; - this.button_Campaign_Add.Size = new System.Drawing.Size(124, 34); + this.button_Campaign_Add.Size = new System.Drawing.Size(87, 20); this.button_Campaign_Add.TabIndex = 4; this.button_Campaign_Add.Text = "Add Mission"; this.button_Campaign_Add.UseVisualStyleBackColor = true; @@ -599,9 +601,10 @@ private void InitializeComponent() // // button_Campaign_Load // - this.button_Campaign_Load.Location = new System.Drawing.Point(7, 88); + this.button_Campaign_Load.Location = new System.Drawing.Point(5, 53); + this.button_Campaign_Load.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_Load.Name = "button_Campaign_Load"; - this.button_Campaign_Load.Size = new System.Drawing.Size(112, 34); + this.button_Campaign_Load.Size = new System.Drawing.Size(78, 20); this.button_Campaign_Load.TabIndex = 3; this.button_Campaign_Load.Text = "Load"; this.button_Campaign_Load.UseVisualStyleBackColor = true; @@ -609,9 +612,10 @@ private void InitializeComponent() // // button_Campaign_Safe // - this.button_Campaign_Safe.Location = new System.Drawing.Point(7, 48); + this.button_Campaign_Safe.Location = new System.Drawing.Point(5, 29); + this.button_Campaign_Safe.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_Safe.Name = "button_Campaign_Safe"; - this.button_Campaign_Safe.Size = new System.Drawing.Size(112, 34); + this.button_Campaign_Safe.Size = new System.Drawing.Size(78, 20); this.button_Campaign_Safe.TabIndex = 2; this.button_Campaign_Safe.Text = "Safe"; this.button_Campaign_Safe.UseVisualStyleBackColor = true; @@ -619,9 +623,10 @@ private void InitializeComponent() // // button_Campaign_New // - this.button_Campaign_New.Location = new System.Drawing.Point(7, 8); + this.button_Campaign_New.Location = new System.Drawing.Point(5, 5); + this.button_Campaign_New.Margin = new System.Windows.Forms.Padding(2); this.button_Campaign_New.Name = "button_Campaign_New"; - this.button_Campaign_New.Size = new System.Drawing.Size(112, 34); + this.button_Campaign_New.Size = new System.Drawing.Size(78, 20); this.button_Campaign_New.TabIndex = 1; this.button_Campaign_New.Text = "New"; this.button_Campaign_New.UseVisualStyleBackColor = true; @@ -629,6 +634,7 @@ private void InitializeComponent() // // tabPage2 // + this.tabPage2.Controls.Add(this.radioButton_includeSquadrons_SM); this.tabPage2.Controls.Add(this.radioButton_includePlayerStatistic); this.tabPage2.Controls.Add(this.button_sm_reanalyze); this.tabPage2.Controls.Add(this.label3); @@ -637,21 +643,32 @@ private void InitializeComponent() this.tabPage2.Controls.Add(this.tabControl_sm_blueSide); this.tabPage2.Controls.Add(this.button_exportSingleMission); this.tabPage2.Controls.Add(this.button_loadSingleMission); - this.tabPage2.Location = new System.Drawing.Point(4, 34); - this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage2.Location = new System.Drawing.Point(4, 24); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage2.Size = new System.Drawing.Size(1615, 1122); + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(1128, 668); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Single Mission"; this.tabPage2.UseVisualStyleBackColor = true; // + // radioButton_includeSquadrons_SM + // + this.radioButton_includeSquadrons_SM.AutoSize = true; + this.radioButton_includeSquadrons_SM.Location = new System.Drawing.Point(8, 143); + this.radioButton_includeSquadrons_SM.Name = "radioButton_includeSquadrons_SM"; + this.radioButton_includeSquadrons_SM.Size = new System.Drawing.Size(123, 19); + this.radioButton_includeSquadrons_SM.TabIndex = 8; + this.radioButton_includeSquadrons_SM.TabStop = true; + this.radioButton_includeSquadrons_SM.Text = "Include Squadrons"; + this.radioButton_includeSquadrons_SM.UseVisualStyleBackColor = true; + // // radioButton_includePlayerStatistic // this.radioButton_includePlayerStatistic.AutoSize = true; - this.radioButton_includePlayerStatistic.Location = new System.Drawing.Point(11, 199); + this.radioButton_includePlayerStatistic.Location = new System.Drawing.Point(8, 119); + this.radioButton_includePlayerStatistic.Margin = new System.Windows.Forms.Padding(2); this.radioButton_includePlayerStatistic.Name = "radioButton_includePlayerStatistic"; - this.radioButton_includePlayerStatistic.Size = new System.Drawing.Size(155, 29); + this.radioButton_includePlayerStatistic.Size = new System.Drawing.Size(104, 19); this.radioButton_includePlayerStatistic.TabIndex = 7; this.radioButton_includePlayerStatistic.TabStop = true; this.radioButton_includePlayerStatistic.Text = "Include players"; @@ -659,10 +676,9 @@ private void InitializeComponent() // // button_sm_reanalyze // - this.button_sm_reanalyze.Location = new System.Drawing.Point(11, 68); - this.button_sm_reanalyze.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.button_sm_reanalyze.Location = new System.Drawing.Point(8, 41); this.button_sm_reanalyze.Name = "button_sm_reanalyze"; - this.button_sm_reanalyze.Size = new System.Drawing.Size(194, 53); + this.button_sm_reanalyze.Size = new System.Drawing.Size(136, 32); this.button_sm_reanalyze.TabIndex = 6; this.button_sm_reanalyze.Text = "Re-Analyze Mission"; this.button_sm_reanalyze.UseVisualStyleBackColor = true; @@ -673,24 +689,22 @@ private void InitializeComponent() this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.label3.ForeColor = System.Drawing.Color.Blue; - this.label3.Location = new System.Drawing.Point(870, 13); - this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label3.Location = new System.Drawing.Point(609, 8); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(114, 32); + this.label3.Size = new System.Drawing.Size(133, 21); this.label3.TabIndex = 5; - this.label3.Text = "Blue Side"; + this.label3.Text = "Blue Side Preview"; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.label2.ForeColor = System.Drawing.Color.Red; - this.label2.Location = new System.Drawing.Point(220, 15); - this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Location = new System.Drawing.Point(154, 9); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(107, 32); + this.label2.Size = new System.Drawing.Size(130, 21); this.label2.TabIndex = 4; - this.label2.Text = "Red Side"; + this.label2.Text = "Red Side Preview"; // // tabControl_sm_redSide // @@ -700,21 +714,19 @@ private void InitializeComponent() this.tabControl_sm_redSide.Controls.Add(this.tabPage12); this.tabControl_sm_redSide.Controls.Add(this.tabPage13); this.tabControl_sm_redSide.Controls.Add(this.tabPage14); - this.tabControl_sm_redSide.Location = new System.Drawing.Point(870, 52); - this.tabControl_sm_redSide.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabControl_sm_redSide.Location = new System.Drawing.Point(609, 31); this.tabControl_sm_redSide.Name = "tabControl_sm_redSide"; this.tabControl_sm_redSide.SelectedIndex = 0; - this.tabControl_sm_redSide.Size = new System.Drawing.Size(684, 966); + this.tabControl_sm_redSide.Size = new System.Drawing.Size(479, 580); this.tabControl_sm_redSide.TabIndex = 3; // // tabPage5 // this.tabPage5.Controls.Add(this.listBox_aircraft_blue); - this.tabPage5.Location = new System.Drawing.Point(4, 34); - this.tabPage5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage5.Location = new System.Drawing.Point(4, 24); this.tabPage5.Name = "tabPage5"; - this.tabPage5.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage5.Size = new System.Drawing.Size(676, 928); + this.tabPage5.Padding = new System.Windows.Forms.Padding(3); + this.tabPage5.Size = new System.Drawing.Size(471, 552); this.tabPage5.TabIndex = 0; this.tabPage5.Text = "Aircraft"; this.tabPage5.UseVisualStyleBackColor = true; @@ -723,21 +735,19 @@ private void InitializeComponent() // this.listBox_aircraft_blue.FormattingEnabled = true; this.listBox_aircraft_blue.HorizontalScrollbar = true; - this.listBox_aircraft_blue.ItemHeight = 25; - this.listBox_aircraft_blue.Location = new System.Drawing.Point(4, 10); - this.listBox_aircraft_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_aircraft_blue.ItemHeight = 15; + this.listBox_aircraft_blue.Location = new System.Drawing.Point(3, 6); this.listBox_aircraft_blue.Name = "listBox_aircraft_blue"; - this.listBox_aircraft_blue.Size = new System.Drawing.Size(658, 904); + this.listBox_aircraft_blue.Size = new System.Drawing.Size(462, 544); this.listBox_aircraft_blue.TabIndex = 0; // // tabPage6 // this.tabPage6.Controls.Add(this.listBox_helicopter_blue); - this.tabPage6.Location = new System.Drawing.Point(4, 34); - this.tabPage6.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage6.Location = new System.Drawing.Point(4, 24); this.tabPage6.Name = "tabPage6"; - this.tabPage6.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage6.Size = new System.Drawing.Size(676, 928); + this.tabPage6.Padding = new System.Windows.Forms.Padding(3); + this.tabPage6.Size = new System.Drawing.Size(471, 552); this.tabPage6.TabIndex = 1; this.tabPage6.Text = "Helicopter"; this.tabPage6.UseVisualStyleBackColor = true; @@ -746,20 +756,18 @@ private void InitializeComponent() // this.listBox_helicopter_blue.FormattingEnabled = true; this.listBox_helicopter_blue.HorizontalScrollbar = true; - this.listBox_helicopter_blue.ItemHeight = 25; - this.listBox_helicopter_blue.Location = new System.Drawing.Point(4, 7); - this.listBox_helicopter_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_helicopter_blue.ItemHeight = 15; + this.listBox_helicopter_blue.Location = new System.Drawing.Point(3, 4); this.listBox_helicopter_blue.Name = "listBox_helicopter_blue"; - this.listBox_helicopter_blue.Size = new System.Drawing.Size(658, 879); + this.listBox_helicopter_blue.Size = new System.Drawing.Size(462, 529); this.listBox_helicopter_blue.TabIndex = 0; // // tabPage11 // this.tabPage11.Controls.Add(this.listBox_sam_blue); - this.tabPage11.Location = new System.Drawing.Point(4, 34); - this.tabPage11.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage11.Location = new System.Drawing.Point(4, 24); this.tabPage11.Name = "tabPage11"; - this.tabPage11.Size = new System.Drawing.Size(676, 928); + this.tabPage11.Size = new System.Drawing.Size(471, 552); this.tabPage11.TabIndex = 2; this.tabPage11.Text = "AAA/SAM"; this.tabPage11.UseVisualStyleBackColor = true; @@ -768,20 +776,18 @@ private void InitializeComponent() // this.listBox_sam_blue.FormattingEnabled = true; this.listBox_sam_blue.HorizontalScrollbar = true; - this.listBox_sam_blue.ItemHeight = 25; - this.listBox_sam_blue.Location = new System.Drawing.Point(0, 3); - this.listBox_sam_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_sam_blue.ItemHeight = 15; + this.listBox_sam_blue.Location = new System.Drawing.Point(0, 2); this.listBox_sam_blue.Name = "listBox_sam_blue"; - this.listBox_sam_blue.Size = new System.Drawing.Size(667, 879); + this.listBox_sam_blue.Size = new System.Drawing.Size(468, 529); this.listBox_sam_blue.TabIndex = 0; // // tabPage12 // this.tabPage12.Controls.Add(this.listBox_tank_blue); - this.tabPage12.Location = new System.Drawing.Point(4, 34); - this.tabPage12.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage12.Location = new System.Drawing.Point(4, 24); this.tabPage12.Name = "tabPage12"; - this.tabPage12.Size = new System.Drawing.Size(676, 928); + this.tabPage12.Size = new System.Drawing.Size(471, 552); this.tabPage12.TabIndex = 3; this.tabPage12.Text = "Armored"; this.tabPage12.UseVisualStyleBackColor = true; @@ -790,20 +796,18 @@ private void InitializeComponent() // this.listBox_tank_blue.FormattingEnabled = true; this.listBox_tank_blue.HorizontalScrollbar = true; - this.listBox_tank_blue.ItemHeight = 25; - this.listBox_tank_blue.Location = new System.Drawing.Point(10, 12); - this.listBox_tank_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_tank_blue.ItemHeight = 15; + this.listBox_tank_blue.Location = new System.Drawing.Point(7, 7); this.listBox_tank_blue.Name = "listBox_tank_blue"; - this.listBox_tank_blue.Size = new System.Drawing.Size(657, 879); + this.listBox_tank_blue.Size = new System.Drawing.Size(461, 529); this.listBox_tank_blue.TabIndex = 0; // // tabPage13 // this.tabPage13.Controls.Add(this.listBox_ship_blue); - this.tabPage13.Location = new System.Drawing.Point(4, 34); - this.tabPage13.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage13.Location = new System.Drawing.Point(4, 24); this.tabPage13.Name = "tabPage13"; - this.tabPage13.Size = new System.Drawing.Size(676, 928); + this.tabPage13.Size = new System.Drawing.Size(471, 552); this.tabPage13.TabIndex = 4; this.tabPage13.Text = "Ship"; this.tabPage13.UseVisualStyleBackColor = true; @@ -812,20 +816,18 @@ private void InitializeComponent() // this.listBox_ship_blue.FormattingEnabled = true; this.listBox_ship_blue.HorizontalScrollbar = true; - this.listBox_ship_blue.ItemHeight = 25; - this.listBox_ship_blue.Location = new System.Drawing.Point(7, 7); - this.listBox_ship_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_ship_blue.ItemHeight = 15; + this.listBox_ship_blue.Location = new System.Drawing.Point(5, 4); this.listBox_ship_blue.Name = "listBox_ship_blue"; - this.listBox_ship_blue.Size = new System.Drawing.Size(660, 879); + this.listBox_ship_blue.Size = new System.Drawing.Size(463, 529); this.listBox_ship_blue.TabIndex = 0; // // tabPage14 // this.tabPage14.Controls.Add(this.listBox_other_blue); - this.tabPage14.Location = new System.Drawing.Point(4, 34); - this.tabPage14.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage14.Location = new System.Drawing.Point(4, 24); this.tabPage14.Name = "tabPage14"; - this.tabPage14.Size = new System.Drawing.Size(676, 928); + this.tabPage14.Size = new System.Drawing.Size(471, 552); this.tabPage14.TabIndex = 5; this.tabPage14.Text = "Other"; this.tabPage14.UseVisualStyleBackColor = true; @@ -834,11 +836,10 @@ private void InitializeComponent() // this.listBox_other_blue.FormattingEnabled = true; this.listBox_other_blue.HorizontalScrollbar = true; - this.listBox_other_blue.ItemHeight = 25; - this.listBox_other_blue.Location = new System.Drawing.Point(4, 10); - this.listBox_other_blue.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_other_blue.ItemHeight = 15; + this.listBox_other_blue.Location = new System.Drawing.Point(3, 6); this.listBox_other_blue.Name = "listBox_other_blue"; - this.listBox_other_blue.Size = new System.Drawing.Size(663, 879); + this.listBox_other_blue.Size = new System.Drawing.Size(465, 529); this.listBox_other_blue.TabIndex = 0; // // tabControl_sm_blueSide @@ -849,21 +850,19 @@ private void InitializeComponent() this.tabControl_sm_blueSide.Controls.Add(this.tabPage8); this.tabControl_sm_blueSide.Controls.Add(this.tabPage9); this.tabControl_sm_blueSide.Controls.Add(this.tabPage10); - this.tabControl_sm_blueSide.Location = new System.Drawing.Point(214, 52); - this.tabControl_sm_blueSide.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabControl_sm_blueSide.Location = new System.Drawing.Point(150, 31); this.tabControl_sm_blueSide.Name = "tabControl_sm_blueSide"; this.tabControl_sm_blueSide.SelectedIndex = 0; - this.tabControl_sm_blueSide.Size = new System.Drawing.Size(647, 970); + this.tabControl_sm_blueSide.Size = new System.Drawing.Size(453, 582); this.tabControl_sm_blueSide.TabIndex = 2; // // tabPage3 // this.tabPage3.Controls.Add(this.listBox_aircraft_red); - this.tabPage3.Location = new System.Drawing.Point(4, 34); - this.tabPage3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage3.Location = new System.Drawing.Point(4, 24); this.tabPage3.Name = "tabPage3"; - this.tabPage3.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage3.Size = new System.Drawing.Size(639, 932); + this.tabPage3.Padding = new System.Windows.Forms.Padding(3); + this.tabPage3.Size = new System.Drawing.Size(445, 554); this.tabPage3.TabIndex = 0; this.tabPage3.Text = "Aircraft"; this.tabPage3.UseVisualStyleBackColor = true; @@ -872,21 +871,19 @@ private void InitializeComponent() // this.listBox_aircraft_red.FormattingEnabled = true; this.listBox_aircraft_red.HorizontalScrollbar = true; - this.listBox_aircraft_red.ItemHeight = 25; - this.listBox_aircraft_red.Location = new System.Drawing.Point(11, 10); - this.listBox_aircraft_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_aircraft_red.ItemHeight = 15; + this.listBox_aircraft_red.Location = new System.Drawing.Point(8, 6); this.listBox_aircraft_red.Name = "listBox_aircraft_red"; - this.listBox_aircraft_red.Size = new System.Drawing.Size(614, 904); + this.listBox_aircraft_red.Size = new System.Drawing.Size(431, 544); this.listBox_aircraft_red.TabIndex = 0; // // tabPage4 // this.tabPage4.Controls.Add(this.listBox_helicopter_red); - this.tabPage4.Location = new System.Drawing.Point(4, 34); - this.tabPage4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage4.Location = new System.Drawing.Point(4, 24); this.tabPage4.Name = "tabPage4"; - this.tabPage4.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.tabPage4.Size = new System.Drawing.Size(639, 932); + this.tabPage4.Padding = new System.Windows.Forms.Padding(3); + this.tabPage4.Size = new System.Drawing.Size(445, 554); this.tabPage4.TabIndex = 1; this.tabPage4.Text = "Helicopter"; this.tabPage4.UseVisualStyleBackColor = true; @@ -895,20 +892,18 @@ private void InitializeComponent() // this.listBox_helicopter_red.FormattingEnabled = true; this.listBox_helicopter_red.HorizontalScrollbar = true; - this.listBox_helicopter_red.ItemHeight = 25; - this.listBox_helicopter_red.Location = new System.Drawing.Point(7, 13); - this.listBox_helicopter_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_helicopter_red.ItemHeight = 15; + this.listBox_helicopter_red.Location = new System.Drawing.Point(5, 8); this.listBox_helicopter_red.Name = "listBox_helicopter_red"; - this.listBox_helicopter_red.Size = new System.Drawing.Size(623, 879); + this.listBox_helicopter_red.Size = new System.Drawing.Size(437, 529); this.listBox_helicopter_red.TabIndex = 0; // // tabPage7 // this.tabPage7.Controls.Add(this.listBox_sam_red); - this.tabPage7.Location = new System.Drawing.Point(4, 34); - this.tabPage7.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage7.Location = new System.Drawing.Point(4, 24); this.tabPage7.Name = "tabPage7"; - this.tabPage7.Size = new System.Drawing.Size(639, 932); + this.tabPage7.Size = new System.Drawing.Size(445, 554); this.tabPage7.TabIndex = 2; this.tabPage7.Text = "AAA/SAM"; this.tabPage7.UseVisualStyleBackColor = true; @@ -917,20 +912,18 @@ private void InitializeComponent() // this.listBox_sam_red.FormattingEnabled = true; this.listBox_sam_red.HorizontalScrollbar = true; - this.listBox_sam_red.ItemHeight = 25; - this.listBox_sam_red.Location = new System.Drawing.Point(4, 8); - this.listBox_sam_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_sam_red.ItemHeight = 15; + this.listBox_sam_red.Location = new System.Drawing.Point(3, 5); this.listBox_sam_red.Name = "listBox_sam_red"; - this.listBox_sam_red.Size = new System.Drawing.Size(625, 904); + this.listBox_sam_red.Size = new System.Drawing.Size(439, 544); this.listBox_sam_red.TabIndex = 0; // // tabPage8 // this.tabPage8.Controls.Add(this.listBox_tank_red); - this.tabPage8.Location = new System.Drawing.Point(4, 34); - this.tabPage8.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage8.Location = new System.Drawing.Point(4, 24); this.tabPage8.Name = "tabPage8"; - this.tabPage8.Size = new System.Drawing.Size(639, 932); + this.tabPage8.Size = new System.Drawing.Size(445, 554); this.tabPage8.TabIndex = 3; this.tabPage8.Text = "Armored"; this.tabPage8.UseVisualStyleBackColor = true; @@ -939,20 +932,18 @@ private void InitializeComponent() // this.listBox_tank_red.FormattingEnabled = true; this.listBox_tank_red.HorizontalScrollbar = true; - this.listBox_tank_red.ItemHeight = 25; - this.listBox_tank_red.Location = new System.Drawing.Point(11, 15); - this.listBox_tank_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_tank_red.ItemHeight = 15; + this.listBox_tank_red.Location = new System.Drawing.Point(8, 9); this.listBox_tank_red.Name = "listBox_tank_red"; - this.listBox_tank_red.Size = new System.Drawing.Size(618, 879); + this.listBox_tank_red.Size = new System.Drawing.Size(434, 529); this.listBox_tank_red.TabIndex = 0; // // tabPage9 // this.tabPage9.Controls.Add(this.listBox_ship_red); - this.tabPage9.Location = new System.Drawing.Point(4, 34); - this.tabPage9.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage9.Location = new System.Drawing.Point(4, 24); this.tabPage9.Name = "tabPage9"; - this.tabPage9.Size = new System.Drawing.Size(639, 932); + this.tabPage9.Size = new System.Drawing.Size(445, 554); this.tabPage9.TabIndex = 4; this.tabPage9.Text = "Ship"; this.tabPage9.UseVisualStyleBackColor = true; @@ -961,20 +952,18 @@ private void InitializeComponent() // this.listBox_ship_red.FormattingEnabled = true; this.listBox_ship_red.HorizontalScrollbar = true; - this.listBox_ship_red.ItemHeight = 25; - this.listBox_ship_red.Location = new System.Drawing.Point(14, 15); - this.listBox_ship_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_ship_red.ItemHeight = 15; + this.listBox_ship_red.Location = new System.Drawing.Point(10, 9); this.listBox_ship_red.Name = "listBox_ship_red"; - this.listBox_ship_red.Size = new System.Drawing.Size(615, 879); + this.listBox_ship_red.Size = new System.Drawing.Size(432, 529); this.listBox_ship_red.TabIndex = 0; // // tabPage10 // this.tabPage10.Controls.Add(this.listBox_other_red); - this.tabPage10.Location = new System.Drawing.Point(4, 34); - this.tabPage10.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPage10.Location = new System.Drawing.Point(4, 24); this.tabPage10.Name = "tabPage10"; - this.tabPage10.Size = new System.Drawing.Size(639, 932); + this.tabPage10.Size = new System.Drawing.Size(445, 554); this.tabPage10.TabIndex = 5; this.tabPage10.Text = "Other"; this.tabPage10.UseVisualStyleBackColor = true; @@ -983,19 +972,17 @@ private void InitializeComponent() // this.listBox_other_red.FormattingEnabled = true; this.listBox_other_red.HorizontalScrollbar = true; - this.listBox_other_red.ItemHeight = 25; - this.listBox_other_red.Location = new System.Drawing.Point(16, 12); - this.listBox_other_red.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.listBox_other_red.ItemHeight = 15; + this.listBox_other_red.Location = new System.Drawing.Point(11, 7); this.listBox_other_red.Name = "listBox_other_red"; - this.listBox_other_red.Size = new System.Drawing.Size(600, 879); + this.listBox_other_red.Size = new System.Drawing.Size(421, 529); this.listBox_other_red.TabIndex = 0; // // button_exportSingleMission // - this.button_exportSingleMission.Location = new System.Drawing.Point(9, 132); - this.button_exportSingleMission.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.button_exportSingleMission.Location = new System.Drawing.Point(6, 79); this.button_exportSingleMission.Name = "button_exportSingleMission"; - this.button_exportSingleMission.Size = new System.Drawing.Size(197, 45); + this.button_exportSingleMission.Size = new System.Drawing.Size(138, 27); this.button_exportSingleMission.TabIndex = 1; this.button_exportSingleMission.Text = "Export Statistic as xss"; this.button_exportSingleMission.UseVisualStyleBackColor = true; @@ -1003,10 +990,9 @@ private void InitializeComponent() // // button_loadSingleMission // - this.button_loadSingleMission.Location = new System.Drawing.Point(9, 10); - this.button_loadSingleMission.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.button_loadSingleMission.Location = new System.Drawing.Point(6, 6); this.button_loadSingleMission.Name = "button_loadSingleMission"; - this.button_loadSingleMission.Size = new System.Drawing.Size(197, 50); + this.button_loadSingleMission.Size = new System.Drawing.Size(138, 30); this.button_loadSingleMission.TabIndex = 0; this.button_loadSingleMission.Text = "Load Single Mission"; this.button_loadSingleMission.UseVisualStyleBackColor = true; @@ -1016,10 +1002,11 @@ private void InitializeComponent() // this.tabControl2.Controls.Add(this.tabPage15); this.tabControl2.Controls.Add(this.tabPage16); - this.tabControl2.Location = new System.Drawing.Point(21, 20); + this.tabControl2.Location = new System.Drawing.Point(15, 12); + this.tabControl2.Margin = new System.Windows.Forms.Padding(2); this.tabControl2.Name = "tabControl2"; this.tabControl2.SelectedIndex = 0; - this.tabControl2.Size = new System.Drawing.Size(381, 1164); + this.tabControl2.Size = new System.Drawing.Size(267, 698); this.tabControl2.TabIndex = 1; // // tabPage15 @@ -1030,19 +1017,21 @@ private void InitializeComponent() this.tabPage15.Controls.Add(this.button_removeSelectedPlayer); this.tabPage15.Controls.Add(this.button_addPlayer); this.tabPage15.Controls.Add(this.listBox_players); - this.tabPage15.Location = new System.Drawing.Point(4, 34); + this.tabPage15.Location = new System.Drawing.Point(4, 24); + this.tabPage15.Margin = new System.Windows.Forms.Padding(2); this.tabPage15.Name = "tabPage15"; - this.tabPage15.Padding = new System.Windows.Forms.Padding(3); - this.tabPage15.Size = new System.Drawing.Size(373, 1126); + this.tabPage15.Padding = new System.Windows.Forms.Padding(2); + this.tabPage15.Size = new System.Drawing.Size(259, 670); this.tabPage15.TabIndex = 0; this.tabPage15.Text = "Players"; this.tabPage15.UseVisualStyleBackColor = true; // // button_newPlayerList // - this.button_newPlayerList.Location = new System.Drawing.Point(113, 1016); + this.button_newPlayerList.Location = new System.Drawing.Point(79, 610); + this.button_newPlayerList.Margin = new System.Windows.Forms.Padding(2); this.button_newPlayerList.Name = "button_newPlayerList"; - this.button_newPlayerList.Size = new System.Drawing.Size(99, 35); + this.button_newPlayerList.Size = new System.Drawing.Size(69, 21); this.button_newPlayerList.TabIndex = 5; this.button_newPlayerList.Text = "New List"; this.button_newPlayerList.UseVisualStyleBackColor = true; @@ -1050,9 +1039,10 @@ private void InitializeComponent() // // button_savePlayers // - this.button_savePlayers.Location = new System.Drawing.Point(268, 1058); + this.button_savePlayers.Location = new System.Drawing.Point(188, 635); + this.button_savePlayers.Margin = new System.Windows.Forms.Padding(2); this.button_savePlayers.Name = "button_savePlayers"; - this.button_savePlayers.Size = new System.Drawing.Size(99, 35); + this.button_savePlayers.Size = new System.Drawing.Size(69, 21); this.button_savePlayers.TabIndex = 4; this.button_savePlayers.Text = "Save"; this.button_savePlayers.UseVisualStyleBackColor = true; @@ -1060,9 +1050,10 @@ private void InitializeComponent() // // button_loadPlayers // - this.button_loadPlayers.Location = new System.Drawing.Point(268, 1017); + this.button_loadPlayers.Location = new System.Drawing.Point(188, 610); + this.button_loadPlayers.Margin = new System.Windows.Forms.Padding(2); this.button_loadPlayers.Name = "button_loadPlayers"; - this.button_loadPlayers.Size = new System.Drawing.Size(99, 35); + this.button_loadPlayers.Size = new System.Drawing.Size(69, 21); this.button_loadPlayers.TabIndex = 3; this.button_loadPlayers.Text = "Load"; this.button_loadPlayers.UseVisualStyleBackColor = true; @@ -1070,9 +1061,10 @@ private void InitializeComponent() // // button_removeSelectedPlayer // - this.button_removeSelectedPlayer.Location = new System.Drawing.Point(6, 1057); + this.button_removeSelectedPlayer.Location = new System.Drawing.Point(4, 634); + this.button_removeSelectedPlayer.Margin = new System.Windows.Forms.Padding(2); this.button_removeSelectedPlayer.Name = "button_removeSelectedPlayer"; - this.button_removeSelectedPlayer.Size = new System.Drawing.Size(89, 34); + this.button_removeSelectedPlayer.Size = new System.Drawing.Size(62, 20); this.button_removeSelectedPlayer.TabIndex = 2; this.button_removeSelectedPlayer.Text = "Remove"; this.button_removeSelectedPlayer.UseVisualStyleBackColor = true; @@ -1080,9 +1072,10 @@ private void InitializeComponent() // // button_addPlayer // - this.button_addPlayer.Location = new System.Drawing.Point(6, 1017); + this.button_addPlayer.Location = new System.Drawing.Point(4, 610); + this.button_addPlayer.Margin = new System.Windows.Forms.Padding(2); this.button_addPlayer.Name = "button_addPlayer"; - this.button_addPlayer.Size = new System.Drawing.Size(89, 34); + this.button_addPlayer.Size = new System.Drawing.Size(62, 20); this.button_addPlayer.TabIndex = 1; this.button_addPlayer.Text = "Add"; this.button_addPlayer.UseVisualStyleBackColor = true; @@ -1091,39 +1084,97 @@ private void InitializeComponent() // listBox_players // this.listBox_players.FormattingEnabled = true; - this.listBox_players.ItemHeight = 25; - this.listBox_players.Location = new System.Drawing.Point(5, 7); + this.listBox_players.ItemHeight = 15; + this.listBox_players.Location = new System.Drawing.Point(4, 4); + this.listBox_players.Margin = new System.Windows.Forms.Padding(2); this.listBox_players.Name = "listBox_players"; - this.listBox_players.Size = new System.Drawing.Size(362, 1004); + this.listBox_players.Size = new System.Drawing.Size(255, 604); this.listBox_players.TabIndex = 0; // // tabPage16 // - this.tabPage16.Controls.Add(this.label4); - this.tabPage16.Location = new System.Drawing.Point(4, 34); + this.tabPage16.Controls.Add(this.button_squadron_safe); + this.tabPage16.Controls.Add(this.button_squadron_load); + this.tabPage16.Controls.Add(this.button_squadron_new); + this.tabPage16.Controls.Add(this.button_squadron_remove); + this.tabPage16.Controls.Add(this.button_squadron_add); + this.tabPage16.Controls.Add(this.listBox_Squadrons); + this.tabPage16.Location = new System.Drawing.Point(4, 24); + this.tabPage16.Margin = new System.Windows.Forms.Padding(2); this.tabPage16.Name = "tabPage16"; - this.tabPage16.Padding = new System.Windows.Forms.Padding(3); - this.tabPage16.Size = new System.Drawing.Size(373, 1126); + this.tabPage16.Padding = new System.Windows.Forms.Padding(2); + this.tabPage16.Size = new System.Drawing.Size(259, 670); this.tabPage16.TabIndex = 1; this.tabPage16.Text = "Squadrons"; this.tabPage16.UseVisualStyleBackColor = true; // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(44, 35); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(139, 25); - this.label4.TabIndex = 0; - this.label4.Text = "In Development"; + // button_squadron_safe + // + this.button_squadron_safe.Location = new System.Drawing.Point(179, 629); + this.button_squadron_safe.Name = "button_squadron_safe"; + this.button_squadron_safe.Size = new System.Drawing.Size(75, 23); + this.button_squadron_safe.TabIndex = 6; + this.button_squadron_safe.Text = "Safe"; + this.button_squadron_safe.UseVisualStyleBackColor = true; + this.button_squadron_safe.Click += new System.EventHandler(this.button_squadron_safe_Click); + // + // button_squadron_load + // + this.button_squadron_load.Location = new System.Drawing.Point(179, 600); + this.button_squadron_load.Name = "button_squadron_load"; + this.button_squadron_load.Size = new System.Drawing.Size(75, 23); + this.button_squadron_load.TabIndex = 5; + this.button_squadron_load.Text = "Load"; + this.button_squadron_load.UseVisualStyleBackColor = true; + this.button_squadron_load.Click += new System.EventHandler(this.button_squadron_load_Click); + // + // button_squadron_new + // + this.button_squadron_new.Location = new System.Drawing.Point(84, 600); + this.button_squadron_new.Name = "button_squadron_new"; + this.button_squadron_new.Size = new System.Drawing.Size(75, 23); + this.button_squadron_new.TabIndex = 4; + this.button_squadron_new.Text = "New List"; + this.button_squadron_new.UseVisualStyleBackColor = true; + this.button_squadron_new.Click += new System.EventHandler(this.button_squadron_new_Click); + // + // button_squadron_remove + // + this.button_squadron_remove.Location = new System.Drawing.Point(5, 629); + this.button_squadron_remove.Name = "button_squadron_remove"; + this.button_squadron_remove.Size = new System.Drawing.Size(75, 23); + this.button_squadron_remove.TabIndex = 3; + this.button_squadron_remove.Text = "Remove"; + this.button_squadron_remove.UseVisualStyleBackColor = true; + this.button_squadron_remove.Click += new System.EventHandler(this.button_squadron_remove_Click); + // + // button_squadron_add + // + this.button_squadron_add.Location = new System.Drawing.Point(3, 600); + this.button_squadron_add.Name = "button_squadron_add"; + this.button_squadron_add.Size = new System.Drawing.Size(75, 23); + this.button_squadron_add.TabIndex = 2; + this.button_squadron_add.Text = "Add"; + this.button_squadron_add.UseVisualStyleBackColor = true; + this.button_squadron_add.Click += new System.EventHandler(this.button_squadron_add_Click); + // + // listBox_Squadrons + // + this.listBox_Squadrons.FormattingEnabled = true; + this.listBox_Squadrons.ItemHeight = 15; + this.listBox_Squadrons.Location = new System.Drawing.Point(5, 5); + this.listBox_Squadrons.Name = "listBox_Squadrons"; + this.listBox_Squadrons.Size = new System.Drawing.Size(249, 589); + this.listBox_Squadrons.TabIndex = 0; // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F); + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(2822, 1192); + this.ClientSize = new System.Drawing.Size(1975, 723); this.Controls.Add(this.tabControl2); this.Controls.Add(this.tabControl1); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "Form1"; this.Text = "Force Manager"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); @@ -1163,7 +1214,6 @@ private void InitializeComponent() this.tabControl2.ResumeLayout(false); this.tabPage15.ResumeLayout(false); this.tabPage16.ResumeLayout(false); - this.tabPage16.PerformLayout(); this.ResumeLayout(false); } @@ -1214,7 +1264,6 @@ private void InitializeComponent() private Button button_savePlayers; private Button button_newPlayerList; private RadioButton radioButton_includePlayerStatistic; - private Label label4; private Button button_Campaign_New; private Button button_Campaign_Load; private Button button_Campaign_Safe; @@ -1255,5 +1304,13 @@ private void InitializeComponent() private Button button_campaign_increaseDisplay; private Label label_displayCampaignMission; private Button button_campaign_remove; + private RadioButton radioButton_includeSquadrons; + private RadioButton radioButton_includeSquadrons_SM; + private Button button_squadron_safe; + private Button button_squadron_load; + private Button button_squadron_new; + private Button button_squadron_remove; + private Button button_squadron_add; + private ListBox listBox_Squadrons; } } \ No newline at end of file diff --git a/Force Manager/Form1.cs b/Force Manager/Form1.cs index ac1d730..59d10f8 100644 --- a/Force Manager/Form1.cs +++ b/Force Manager/Form1.cs @@ -1,6 +1,7 @@ using AssetsManager; using Facade; using Layer; +using SquadronManager; namespace Force_Manager { @@ -10,18 +11,21 @@ public partial class Form1 : Form private string path_singleMission; private const string folderName = "ForceManager"; private const string playerFile = "Players.xml"; + private const string squadronFile = "Squadrons.xml"; private const string campaignFile = "Campaign.xml"; private string playerFilePath; - private string campaignFilePath; private string squadronFilePath; + private string campaignFilePath; private int campaign_displayMission = 1; public Form1() { InitializeComponent(); LoadPlayerList(); + LoadSquadronList(); LoadCampaign(); ShowPlayers(); + ShowSquadrons(); label_displayCampaignMission.Text = "Display Mission: " + campaign_displayMission; } @@ -33,6 +37,27 @@ private void ShowPlayers() listBox_players.Refresh(); } + private void ShowSquadrons() + { + listBox_Squadrons.DataSource = null; + listBox_Squadrons.DataSource = SquadronHandler.Squadrons; + listBox_Squadrons.DisplayMember = "Name"; + listBox_Squadrons.Refresh(); + } + + private void LoadSquadronList() + { + var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); + if (!Directory.Exists(Path.Combine(appDataPath, folderName))) + Directory.CreateDirectory(Path.Combine(appDataPath, folderName)); + + squadronFilePath = Path.Combine(appDataPath, folderName, squadronFile); + if (File.Exists(squadronFilePath)) + { + SquadronHandler.LoadSquadronFile(playerFilePath); + } + } + private void LoadPlayerList() { var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); @@ -63,6 +88,7 @@ private void LoadCampaign() private void Form1_FormClosing(object sender, FormClosingEventArgs e) { PlayerHandler.SavePlayerList(playerFilePath); + SquadronHandler.SaveSquadronList(playerFilePath); CampaignHandler.SaveCampaign(campaignFilePath); if (MessageBox.Show("Do you really want to exit?", "Force Manager", MessageBoxButtons.YesNo) == DialogResult.No) @@ -90,7 +116,7 @@ private void FillListBoxes_SingleMission() { try { - killStatisticSingleMission = SingleMissionHandler.AnalzyeSingleMission(path_singleMission, radioButton_includePlayerStatistic.Checked); + killStatisticSingleMission = SingleMissionHandler.AnalzyeSingleMission(path_singleMission, radioButton_includePlayerStatistic.Checked, radioButton_includeSquadrons_SM.Checked); FillListBoxes_SingleMission_Red(); FillListBoxes_SingleMission_Blue(); } @@ -205,21 +231,6 @@ private void FillListBoxes_SingleMission_Red() } } - //private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e) - //{ - - //} - - //private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e) - //{ - - //} - - //private void tabPage2_Click(object sender, EventArgs e) - //{ - - //} - private void button_sm_reanalyze_Click(object sender, EventArgs e) { if (killStatisticSingleMission != null) @@ -247,16 +258,17 @@ private void button_exportSingleMission_Click(object sender, EventArgs e) if (saveFileDialog.ShowDialog() == DialogResult.OK) { var safePath = saveFileDialog.FileName; - //TODO: not nice - if (radioButton_includePlayerStatistic.Checked == false) - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, killStatisticSingleMission, radioButton_includePlayerStatistic.Checked, new List()); - } - else - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, killStatisticSingleMission, radioButton_includePlayerStatistic.Checked, PlayerHandler.Players); - } - + + var players = new List(); + if (radioButton_includePlayerStatistic.Checked == true) + players = PlayerHandler.Players; + + var squadrons = new List(); + if (radioButton_includeSquadrons_SM.Checked == true) + squadrons = SquadronHandler.Squadrons; + + CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, killStatisticSingleMission, radioButton_includePlayerStatistic.Checked, players, radioButton_includeSquadrons_SM.Checked, squadrons); + } } else @@ -327,6 +339,7 @@ private void button_newPlayerList_Click(object sender, EventArgs e) ShowPlayers(); } + #region campaign private void UpdateCampaign() { if (CampaignHandler.Campaign.CampaignMissions.Count >= campaign_displayMission) @@ -335,7 +348,6 @@ private void UpdateCampaign() DisplayCampaignMission(); } } - private void button_Campaign_New_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show("Do you want to create a new campaign (this will overwrite the old safe!)", "New Campaign", MessageBoxButtons.YesNo); @@ -361,7 +373,6 @@ private void button_Campaign_Safe_Click(object sender, EventArgs e) UpdateCampaign(); } } - private void button_Campaign_Load_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); @@ -377,7 +388,6 @@ private void button_Campaign_Load_Click(object sender, EventArgs e) UpdateCampaign(); } } - private void button_Campaign_Add_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); @@ -389,11 +399,10 @@ private void button_Campaign_Add_Click(object sender, EventArgs e) if (dialog.ShowDialog() == DialogResult.OK && dialog.CheckFileExists) { var path = dialog.FileName; - CampaignHandler.AnalzyeSingleMission(path, radioButton_campaign_includePlayer.Checked); + CampaignHandler.AnalzyeSingleMission(path, radioButton_campaign_includePlayer.Checked, radioButton_includeSquadrons.Checked); UpdateCampaign(); } } - private void button_Campaign_ExportCurrentMission_Click(object sender, EventArgs e) { if (CampaignHandler.Campaign.CampaignMissions.Count != 0) @@ -406,15 +415,16 @@ private void button_Campaign_ExportCurrentMission_Click(object sender, EventArgs if (saveFileDialog.ShowDialog() == DialogResult.OK) { var safePath = saveFileDialog.FileName; - //TODO: not nice - if (radioButton_includePlayerStatistic.Checked == false) - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignMissions.Last(), radioButton_includePlayerStatistic.Checked, new List()); - } - else - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignMissions.Last(), radioButton_includePlayerStatistic.Checked, PlayerHandler.Players); - } + + var players = new List(); + if (radioButton_includePlayerStatistic.Checked == true) + players = PlayerHandler.Players; + + var squadrons = new List(); + if (radioButton_includeSquadrons_SM.Checked == true) + squadrons = SquadronHandler.Squadrons; + + CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignMissions.Last(), radioButton_campaign_includePlayer.Checked, players, radioButton_includeSquadrons.Checked, squadrons); } } else @@ -425,7 +435,6 @@ private void button_Campaign_ExportCurrentMission_Click(object sender, EventArgs MessageBoxIcon.Error); } } - private void button_Campaign_exportCampaignStatistic_Click(object sender, EventArgs e) { if (CampaignHandler.Campaign.CampaignMissions.Count != 0) @@ -438,15 +447,16 @@ private void button_Campaign_exportCampaignStatistic_Click(object sender, EventA if (saveFileDialog.ShowDialog() == DialogResult.OK) { var safePath = saveFileDialog.FileName; - //TODO: not nice - if (radioButton_includePlayerStatistic.Checked == false) - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignStatistic, radioButton_includePlayerStatistic.Checked, new List()); - } - else - { - CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignStatistic, radioButton_includePlayerStatistic.Checked, PlayerHandler.Players); - } + + var players = new List(); + if (radioButton_includePlayerStatistic.Checked == true) + players = PlayerHandler.Players; + + var squadrons = new List(); + if (radioButton_includeSquadrons_SM.Checked == true) + squadrons = SquadronHandler.Squadrons; + + CXmlWriter.WriteCxml.WriteKillStatistics_SingleMission(safePath, CampaignHandler.Campaign.CampaignStatistic, radioButton_campaign_includePlayer.Checked, players, radioButton_includeSquadrons.Checked, squadrons); } } else @@ -457,7 +467,6 @@ private void button_Campaign_exportCampaignStatistic_Click(object sender, EventA MessageBoxIcon.Error); } } - private void button_campaign_decreaseDisplay_Click(object sender, EventArgs e) { if (campaign_displayMission > 1) @@ -467,7 +476,6 @@ private void button_campaign_decreaseDisplay_Click(object sender, EventArgs e) DisplayCampaignMission(); } } - private void button_campaign_increaseDisplay_Click(object sender, EventArgs e) { if (campaign_displayMission < CampaignHandler.Campaign.CampaignMissions.Count) @@ -492,8 +500,6 @@ private void button_campaign_remove_Click(object sender, EventArgs e) } } } - - private void DisplayCampaignMission() { listBox_aircraft_campaign_blue.DataSource = null; @@ -513,7 +519,6 @@ private void DisplayCampaignMission() FillListBoxes_CampaignMission_Red(); FillListBoxes_CampaignMission_Blue(); } - private void FillListBoxes_CampaignMission_Blue() { var killedAircraft = CampaignHandler.Campaign.CampaignMissions[campaign_displayMission - 1].BlueStatistic.FirstOrDefault(x => x.Count > 0 && x[0].Type.ToLower() == "aircraft"); @@ -564,7 +569,6 @@ private void FillListBoxes_CampaignMission_Blue() listBox_other_campaign_blue.DisplayMember = "Display"; } } - private void FillListBoxes_CampaignMission_Red() { var killedAircraft = CampaignHandler.Campaign.CampaignMissions[campaign_displayMission -1].RedStatistic.FirstOrDefault(x => x.Count > 0 && x[0].Type.ToLower() == "aircraft"); @@ -615,13 +619,74 @@ private void FillListBoxes_CampaignMission_Red() listBox_other_campaign_red.DisplayMember = "Display"; } } + private void listBox4_SelectedIndexChanged(object sender, EventArgs e) + { + + } + + #endregion + + #region Squadron + + private void button_squadron_add_Click(object sender, EventArgs e) + { + AddSquadronForm addPlayerForm = new AddSquadronForm(this); + addPlayerForm.Show(); + } + + public void Button_AddSquadron_Pressed(string squadronName) + { + if (squadronName.Trim() != null && squadronName.Trim() != string.Empty) + { + var squadron = new Squadron() { Name = squadronName }; + SquadronHandler.Squadrons.Add(squadron); + ShowSquadrons(); + } + } + + private void button_squadron_remove_Click(object sender, EventArgs e) + { + var selectedSquadron = (Squadron)listBox_players.SelectedItem; + SquadronHandler.Squadrons.Remove(selectedSquadron); + ShowPlayers(); + } + private void button_squadron_new_Click(object sender, EventArgs e) + { + SquadronHandler.Squadrons = new List(); + ShowSquadrons(); + } + private void button_squadron_load_Click(object sender, EventArgs e) + { + OpenFileDialog dialog = new OpenFileDialog(); + dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); + dialog.Filter = "xml files (*.xml)|*.xml|All Files (*.*)|*.*"; + dialog.FilterIndex = 1; + dialog.RestoreDirectory = true; + if (dialog.ShowDialog() == DialogResult.OK && dialog.CheckFileExists) + { + var savePath = dialog.FileName; + SquadronHandler.LoadSquadronFile(savePath); + ShowPlayers(); + } + } - private void listBox4_SelectedIndexChanged(object sender, EventArgs e) + private void button_squadron_safe_Click(object sender, EventArgs e) { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); + saveFileDialog.Filter = "xml files (*.xml)|*.xml|All Files (*.*)|*.*"; + saveFileDialog.FilterIndex = 1; + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + var savePath = saveFileDialog.FileName; + SquadronHandler.SaveSquadronList(savePath); + } } + + #endregion } } \ No newline at end of file diff --git a/Layer/SquadronHandler.cs b/Layer/SquadronHandler.cs index e60dedb..b1be6c4 100644 --- a/Layer/SquadronHandler.cs +++ b/Layer/SquadronHandler.cs @@ -13,7 +13,7 @@ public static class SquadronHandler { public static List Squadrons = new List(); - public static void SavePlayerList(string path) + public static void SaveSquadronList(string path) { path = Path.Combine(path); @@ -24,7 +24,7 @@ public static void SavePlayerList(string path) } } - public static void LoadPlayerFile(string path) + public static void LoadSquadronFile(string path) { if (File.Exists(path)) { diff --git a/README.md b/README.md index 904066e..0bf7156 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,12 @@ The UI only displays a brief overview of the statistic, to get a much nicer view # Features: - Generate statistics about a single mission - Generate statistics about campaign missions -- Generate a list player of players to get statistics about the players +- Get statistics of Players +- Get statistics of Squadrons # Planned Features: - fancy diagrams -- Squadron/Airwing statistic +- Detailed death statistic of players and squadrons - Squadron/Airwing managment (e.g.: how many planes does the squadron/airwing has left,...) - Generate Moose Code, so you can directly have an updated airwing in your Moose files @@ -32,3 +33,6 @@ Name in Mission: Viper 1-1 | Schneeflocke -> this is valid Name in Mission: Viper 1-1 | Schneeflocke | additional stuff -> this is also valid But if a different player in the mission is called "Schneeflocke2" then the force manager will add this players statistic to the statistic of "Schneeflocke"! + +## Squadron names +Works the same as players, but will check the group name instead of the pilot name. A Squadron can contain as many aircraft types and even ground units or ships at once as you wish, if they only share a similar group name. The death count is inacurate after that of course. In the future it is planned to provide a better death statistic so you can see what unit of which type was killed. That way you can display a whole brigade or airwing. \ No newline at end of file