diff --git a/README.md b/README.md index d00531e..d5d23bf 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,13 @@ This is a mod for DCS that works as a DTC (Data Cartridge) for the F-16, F/A-18 **For real-time support, bug reporting and feature suggestions** use the Discord channel - https://discord.gg/saCACg99EZ -# Features by aircraft +# Features + +## General + +- Ability to import flight plans from Combatflite +- Ability to convert coordinates between various formats (by clicking the ellipsis on the coordinate text fields) +- The coordinate text fields also accept pasting data directly from DCS Alt+click window ## Viper - Waypoints with Time Over Steerpoint, Offset aimpoints and VIP / VRP settings diff --git a/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.Designer.cs b/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.Designer.cs index 55ceb3b..201af5a 100644 --- a/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.Designer.cs +++ b/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.Designer.cs @@ -34,45 +34,49 @@ private void InitializeComponent() cboCallsign3 = new DTC.UI.Base.Controls.DTCDropDown(); cboCallsign4 = new DTC.UI.Base.Controls.DTCDropDown(); chkFlightLead = new CheckBox(); - label2 = new Label(); - label3 = new Label(); - label5 = new Label(); - label6 = new Label(); - label7 = new Label(); - label8 = new Label(); - label9 = new Label(); - label10 = new Label(); - txtSTN1 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN2 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN3 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN4 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN5 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN6 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN7 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - txtSTN8 = new DTC.UI.Base.Controls.DTCNumericTextBox(); - label11 = new Label(); - chkTDOA1 = new CheckBox(); - label12 = new Label(); - label13 = new Label(); - radOwn1 = new RadioButton(); - radOwn2 = new RadioButton(); - radOwn3 = new RadioButton(); - radOwn4 = new RadioButton(); - radOwn5 = new RadioButton(); - radOwn6 = new RadioButton(); - radOwn7 = new RadioButton(); - radOwn8 = new RadioButton(); - chkTDOA2 = new CheckBox(); - chkTDOA3 = new CheckBox(); - chkTDOA4 = new CheckBox(); - chkTDOA5 = new CheckBox(); - chkTDOA6 = new CheckBox(); - chkTDOA7 = new CheckBox(); - chkTDOA8 = new CheckBox(); chkFlightMembers = new CheckBox(); chkOwnCallsign = new CheckBox(); label1 = new Label(); cboDatalinkMode = new DTC.UI.Base.Controls.DTCDropDown(); + pnlMembers = new Panel(); + radOwn8 = new RadioButton(); + radOwn7 = new RadioButton(); + radOwn6 = new RadioButton(); + radOwn5 = new RadioButton(); + radOwn4 = new RadioButton(); + radOwn3 = new RadioButton(); + radOwn2 = new RadioButton(); + radOwn1 = new RadioButton(); + chkTDOA8 = new CheckBox(); + chkTDOA7 = new CheckBox(); + chkTDOA6 = new CheckBox(); + chkTDOA5 = new CheckBox(); + chkTDOA4 = new CheckBox(); + chkTDOA3 = new CheckBox(); + chkTDOA2 = new CheckBox(); + chkTDOA1 = new CheckBox(); + txtSTN8 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN7 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN6 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN5 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN4 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN3 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN2 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + txtSTN1 = new DTC.UI.Base.Controls.DTCNumericTextBox(); + label10 = new Label(); + label9 = new Label(); + label8 = new Label(); + label7 = new Label(); + label6 = new Label(); + label5 = new Label(); + label3 = new Label(); + label2 = new Label(); + label12 = new Label(); + label13 = new Label(); + label11 = new Label(); + pnlOwnCallsign = new Panel(); + pnlMembers.SuspendLayout(); + pnlOwnCallsign.SuspendLayout(); SuspendLayout(); // // cboCallsign1 @@ -82,7 +86,7 @@ private void InitializeComponent() cboCallsign1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); cboCallsign1.FormattingEnabled = true; cboCallsign1.Items.AddRange(new object[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }); - cboCallsign1.Location = new Point(152, 15); + cboCallsign1.Location = new Point(3, 2); cboCallsign1.Name = "cboCallsign1"; cboCallsign1.Size = new Size(40, 24); cboCallsign1.TabIndex = 1; @@ -94,7 +98,7 @@ private void InitializeComponent() cboCallsign2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); cboCallsign2.FormattingEnabled = true; cboCallsign2.Items.AddRange(new object[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }); - cboCallsign2.Location = new Point(198, 15); + cboCallsign2.Location = new Point(49, 2); cboCallsign2.Name = "cboCallsign2"; cboCallsign2.Size = new Size(40, 24); cboCallsign2.TabIndex = 2; @@ -106,7 +110,7 @@ private void InitializeComponent() cboCallsign3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); cboCallsign3.FormattingEnabled = true; cboCallsign3.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }); - cboCallsign3.Location = new Point(244, 15); + cboCallsign3.Location = new Point(95, 2); cboCallsign3.Name = "cboCallsign3"; cboCallsign3.Size = new Size(40, 24); cboCallsign3.TabIndex = 3; @@ -118,7 +122,7 @@ private void InitializeComponent() cboCallsign4.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); cboCallsign4.FormattingEnabled = true; cboCallsign4.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }); - cboCallsign4.Location = new Point(290, 15); + cboCallsign4.Location = new Point(141, 2); cboCallsign4.Name = "cboCallsign4"; cboCallsign4.Size = new Size(40, 24); cboCallsign4.TabIndex = 4; @@ -126,7 +130,7 @@ private void InitializeComponent() // chkFlightLead // chkFlightLead.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkFlightLead.Location = new Point(349, 14); + chkFlightLead.Location = new Point(200, 1); chkFlightLead.Margin = new Padding(4); chkFlightLead.Name = "chkFlightLead"; chkFlightLead.Size = new Size(102, 25); @@ -134,499 +138,517 @@ private void InitializeComponent() chkFlightLead.Text = "Flight Lead"; chkFlightLead.UseVisualStyleBackColor = true; // - // label2 - // - label2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label2.Location = new Point(10, 111); - label2.Margin = new Padding(0); - label2.Name = "label2"; - label2.Padding = new Padding(5, 0, 0, 0); - label2.Size = new Size(30, 25); - label2.TabIndex = 37; - label2.Text = "1"; - label2.TextAlign = ContentAlignment.MiddleLeft; + // chkFlightMembers // - // label3 + chkFlightMembers.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkFlightMembers.Location = new Point(15, 53); + chkFlightMembers.Margin = new Padding(4); + chkFlightMembers.Name = "chkFlightMembers"; + chkFlightMembers.Size = new Size(130, 25); + chkFlightMembers.TabIndex = 6; + chkFlightMembers.Text = "Flight members"; + chkFlightMembers.UseVisualStyleBackColor = true; // - label3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label3.Location = new Point(10, 138); - label3.Margin = new Padding(0); - label3.Name = "label3"; - label3.Padding = new Padding(5, 0, 0, 0); - label3.Size = new Size(30, 25); - label3.TabIndex = 37; - label3.Text = "2"; - label3.TextAlign = ContentAlignment.MiddleLeft; + // chkOwnCallsign // - // label5 + chkOwnCallsign.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkOwnCallsign.Location = new Point(15, 15); + chkOwnCallsign.Margin = new Padding(4); + chkOwnCallsign.Name = "chkOwnCallsign"; + chkOwnCallsign.Size = new Size(130, 25); + chkOwnCallsign.TabIndex = 0; + chkOwnCallsign.Text = "Own callsign:"; + chkOwnCallsign.UseVisualStyleBackColor = true; // - label5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label5.Location = new Point(10, 165); - label5.Margin = new Padding(0); - label5.Name = "label5"; - label5.Padding = new Padding(5, 0, 0, 0); - label5.Size = new Size(30, 25); - label5.TabIndex = 37; - label5.Text = "3"; - label5.TextAlign = ContentAlignment.MiddleLeft; + // label1 // - // label6 + label1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label1.Location = new Point(10, 344); + label1.Margin = new Padding(0); + label1.Name = "label1"; + label1.Padding = new Padding(5, 0, 0, 0); + label1.Size = new Size(111, 25); + label1.TabIndex = 38; + label1.Text = "Datalink Mode:"; + label1.TextAlign = ContentAlignment.MiddleLeft; // - label6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label6.Location = new Point(10, 192); - label6.Margin = new Padding(0); - label6.Name = "label6"; - label6.Padding = new Padding(5, 0, 0, 0); - label6.Size = new Size(30, 25); - label6.TabIndex = 37; - label6.Text = "4"; - label6.TextAlign = ContentAlignment.MiddleLeft; + // cboDatalinkMode // - // label7 + cboDatalinkMode.DropDownStyle = ComboBoxStyle.DropDownList; + cboDatalinkMode.FlatStyle = FlatStyle.Flat; + cboDatalinkMode.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + cboDatalinkMode.FormattingEnabled = true; + cboDatalinkMode.Items.AddRange(new object[] { "", "OFF", "TNDL", "SMDL" }); + cboDatalinkMode.Location = new Point(124, 345); + cboDatalinkMode.Name = "cboDatalinkMode"; + cboDatalinkMode.Size = new Size(76, 24); + cboDatalinkMode.TabIndex = 31; // - label7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label7.Location = new Point(10, 219); - label7.Margin = new Padding(0); - label7.Name = "label7"; - label7.Padding = new Padding(5, 0, 0, 0); - label7.Size = new Size(30, 25); - label7.TabIndex = 37; - label7.Text = "5"; - label7.TextAlign = ContentAlignment.MiddleLeft; + // pnlMembers + // + pnlMembers.Controls.Add(radOwn8); + pnlMembers.Controls.Add(radOwn7); + pnlMembers.Controls.Add(radOwn6); + pnlMembers.Controls.Add(radOwn5); + pnlMembers.Controls.Add(radOwn4); + pnlMembers.Controls.Add(radOwn3); + pnlMembers.Controls.Add(radOwn2); + pnlMembers.Controls.Add(radOwn1); + pnlMembers.Controls.Add(chkTDOA8); + pnlMembers.Controls.Add(chkTDOA7); + pnlMembers.Controls.Add(chkTDOA6); + pnlMembers.Controls.Add(chkTDOA5); + pnlMembers.Controls.Add(chkTDOA4); + pnlMembers.Controls.Add(chkTDOA3); + pnlMembers.Controls.Add(chkTDOA2); + pnlMembers.Controls.Add(chkTDOA1); + pnlMembers.Controls.Add(txtSTN8); + pnlMembers.Controls.Add(txtSTN7); + pnlMembers.Controls.Add(txtSTN6); + pnlMembers.Controls.Add(txtSTN5); + pnlMembers.Controls.Add(txtSTN4); + pnlMembers.Controls.Add(txtSTN3); + pnlMembers.Controls.Add(txtSTN2); + pnlMembers.Controls.Add(txtSTN1); + pnlMembers.Controls.Add(label10); + pnlMembers.Controls.Add(label9); + pnlMembers.Controls.Add(label8); + pnlMembers.Controls.Add(label7); + pnlMembers.Controls.Add(label6); + pnlMembers.Controls.Add(label5); + pnlMembers.Controls.Add(label3); + pnlMembers.Controls.Add(label2); + pnlMembers.Controls.Add(label12); + pnlMembers.Controls.Add(label13); + pnlMembers.Controls.Add(label11); + pnlMembers.Location = new Point(15, 89); + pnlMembers.Name = "pnlMembers"; + pnlMembers.Size = new Size(319, 250); + pnlMembers.TabIndex = 39; // - // label8 + // radOwn8 // - label8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label8.Location = new Point(10, 246); - label8.Margin = new Padding(0); - label8.Name = "label8"; - label8.Padding = new Padding(5, 0, 0, 0); - label8.Size = new Size(30, 25); - label8.TabIndex = 37; - label8.Text = "6"; - label8.TextAlign = ContentAlignment.MiddleLeft; + radOwn8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn8.Location = new Point(49, 214); + radOwn8.Name = "radOwn8"; + radOwn8.Size = new Size(20, 25); + radOwn8.TabIndex = 59; + radOwn8.TabStop = true; + radOwn8.UseVisualStyleBackColor = true; // - // label9 + // radOwn7 // - label9.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label9.Location = new Point(10, 273); - label9.Margin = new Padding(0); - label9.Name = "label9"; - label9.Padding = new Padding(5, 0, 0, 0); - label9.Size = new Size(30, 25); - label9.TabIndex = 37; - label9.Text = "7"; - label9.TextAlign = ContentAlignment.MiddleLeft; + radOwn7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn7.Location = new Point(49, 187); + radOwn7.Name = "radOwn7"; + radOwn7.Size = new Size(20, 25); + radOwn7.TabIndex = 56; + radOwn7.TabStop = true; + radOwn7.UseVisualStyleBackColor = true; // - // label10 + // radOwn6 // - label10.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label10.Location = new Point(10, 300); - label10.Margin = new Padding(0); - label10.Name = "label10"; - label10.Padding = new Padding(5, 0, 0, 0); - label10.Size = new Size(30, 25); - label10.TabIndex = 37; - label10.Text = "8"; - label10.TextAlign = ContentAlignment.MiddleLeft; + radOwn6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn6.Location = new Point(49, 160); + radOwn6.Name = "radOwn6"; + radOwn6.Size = new Size(20, 25); + radOwn6.TabIndex = 53; + radOwn6.TabStop = true; + radOwn6.UseVisualStyleBackColor = true; // - // txtSTN1 + // radOwn5 // - txtSTN1.AllowFraction = false; - txtSTN1.BackColor = SystemColors.Window; - txtSTN1.Location = new Point(96, 111); - txtSTN1.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN1.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN1.Name = "txtSTN1"; - txtSTN1.Size = new Size(104, 25); - txtSTN1.TabIndex = 8; - txtSTN1.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN1.Value = null; + radOwn5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn5.Location = new Point(49, 133); + radOwn5.Name = "radOwn5"; + radOwn5.Size = new Size(20, 25); + radOwn5.TabIndex = 50; + radOwn5.TabStop = true; + radOwn5.UseVisualStyleBackColor = true; // - // txtSTN2 + // radOwn4 // - txtSTN2.AllowFraction = false; - txtSTN2.BackColor = SystemColors.Window; - txtSTN2.Location = new Point(96, 138); - txtSTN2.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN2.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN2.Name = "txtSTN2"; - txtSTN2.Size = new Size(104, 25); - txtSTN2.TabIndex = 11; - txtSTN2.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN2.Value = null; + radOwn4.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn4.Location = new Point(49, 106); + radOwn4.Name = "radOwn4"; + radOwn4.Size = new Size(20, 25); + radOwn4.TabIndex = 47; + radOwn4.TabStop = true; + radOwn4.UseVisualStyleBackColor = true; // - // txtSTN3 + // radOwn3 // - txtSTN3.AllowFraction = false; - txtSTN3.BackColor = SystemColors.Window; - txtSTN3.Location = new Point(96, 165); - txtSTN3.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN3.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN3.Name = "txtSTN3"; - txtSTN3.Size = new Size(104, 25); - txtSTN3.TabIndex = 14; - txtSTN3.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN3.Value = null; + radOwn3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn3.Location = new Point(49, 79); + radOwn3.Name = "radOwn3"; + radOwn3.Size = new Size(20, 25); + radOwn3.TabIndex = 44; + radOwn3.TabStop = true; + radOwn3.UseVisualStyleBackColor = true; // - // txtSTN4 + // radOwn2 // - txtSTN4.AllowFraction = false; - txtSTN4.BackColor = SystemColors.Window; - txtSTN4.Location = new Point(96, 192); - txtSTN4.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN4.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN4.Name = "txtSTN4"; - txtSTN4.Size = new Size(104, 25); - txtSTN4.TabIndex = 17; - txtSTN4.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN4.Value = null; + radOwn2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn2.Location = new Point(49, 52); + radOwn2.Name = "radOwn2"; + radOwn2.Size = new Size(20, 25); + radOwn2.TabIndex = 41; + radOwn2.TabStop = true; + radOwn2.UseVisualStyleBackColor = true; // - // txtSTN5 + // radOwn1 // - txtSTN5.AllowFraction = false; - txtSTN5.BackColor = SystemColors.Window; - txtSTN5.Location = new Point(96, 219); - txtSTN5.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN5.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN5.Name = "txtSTN5"; - txtSTN5.Size = new Size(104, 25); - txtSTN5.TabIndex = 20; - txtSTN5.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN5.Value = null; + radOwn1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + radOwn1.Location = new Point(49, 25); + radOwn1.Name = "radOwn1"; + radOwn1.Size = new Size(20, 25); + radOwn1.TabIndex = 38; + radOwn1.TabStop = true; + radOwn1.UseVisualStyleBackColor = true; // - // txtSTN6 + // chkTDOA8 // - txtSTN6.AllowFraction = false; - txtSTN6.BackColor = SystemColors.Window; - txtSTN6.Location = new Point(96, 246); - txtSTN6.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN6.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN6.Name = "txtSTN6"; - txtSTN6.Size = new Size(104, 25); - txtSTN6.TabIndex = 23; - txtSTN6.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN6.Value = null; + chkTDOA8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA8.Location = new Point(215, 214); + chkTDOA8.Margin = new Padding(4); + chkTDOA8.Name = "chkTDOA8"; + chkTDOA8.Size = new Size(25, 25); + chkTDOA8.TabIndex = 61; + chkTDOA8.UseVisualStyleBackColor = true; // - // txtSTN7 + // chkTDOA7 // - txtSTN7.AllowFraction = false; - txtSTN7.BackColor = SystemColors.Window; - txtSTN7.Location = new Point(96, 273); - txtSTN7.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN7.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN7.Name = "txtSTN7"; - txtSTN7.Size = new Size(104, 25); - txtSTN7.TabIndex = 26; - txtSTN7.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN7.Value = null; + chkTDOA7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA7.Location = new Point(215, 187); + chkTDOA7.Margin = new Padding(4); + chkTDOA7.Name = "chkTDOA7"; + chkTDOA7.Size = new Size(25, 25); + chkTDOA7.TabIndex = 58; + chkTDOA7.UseVisualStyleBackColor = true; // - // txtSTN8 + // chkTDOA6 // - txtSTN8.AllowFraction = false; - txtSTN8.BackColor = SystemColors.Window; - txtSTN8.Location = new Point(96, 300); - txtSTN8.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); - txtSTN8.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); - txtSTN8.Name = "txtSTN8"; - txtSTN8.Size = new Size(104, 25); - txtSTN8.TabIndex = 29; - txtSTN8.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; - txtSTN8.Value = null; + chkTDOA6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA6.Location = new Point(215, 160); + chkTDOA6.Margin = new Padding(4); + chkTDOA6.Name = "chkTDOA6"; + chkTDOA6.Size = new Size(25, 25); + chkTDOA6.TabIndex = 55; + chkTDOA6.UseVisualStyleBackColor = true; // - // label11 + // chkTDOA5 // - label11.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label11.Location = new Point(96, 87); - label11.Margin = new Padding(0); - label11.Name = "label11"; - label11.Padding = new Padding(5, 0, 0, 0); - label11.Size = new Size(104, 25); - label11.TabIndex = 37; - label11.Text = "STN"; - label11.TextAlign = ContentAlignment.MiddleCenter; + chkTDOA5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA5.Location = new Point(215, 133); + chkTDOA5.Margin = new Padding(4); + chkTDOA5.Name = "chkTDOA5"; + chkTDOA5.Size = new Size(25, 25); + chkTDOA5.TabIndex = 52; + chkTDOA5.UseVisualStyleBackColor = true; + // + // chkTDOA4 + // + chkTDOA4.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA4.Location = new Point(215, 106); + chkTDOA4.Margin = new Padding(4); + chkTDOA4.Name = "chkTDOA4"; + chkTDOA4.Size = new Size(25, 25); + chkTDOA4.TabIndex = 49; + chkTDOA4.UseVisualStyleBackColor = true; + // + // chkTDOA3 + // + chkTDOA3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA3.Location = new Point(215, 79); + chkTDOA3.Margin = new Padding(4); + chkTDOA3.Name = "chkTDOA3"; + chkTDOA3.Size = new Size(25, 25); + chkTDOA3.TabIndex = 46; + chkTDOA3.UseVisualStyleBackColor = true; + // + // chkTDOA2 + // + chkTDOA2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + chkTDOA2.Location = new Point(215, 52); + chkTDOA2.Margin = new Padding(4); + chkTDOA2.Name = "chkTDOA2"; + chkTDOA2.Size = new Size(25, 25); + chkTDOA2.TabIndex = 43; + chkTDOA2.UseVisualStyleBackColor = true; // // chkTDOA1 // chkTDOA1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA1.Location = new Point(224, 111); + chkTDOA1.Location = new Point(215, 25); chkTDOA1.Margin = new Padding(4); chkTDOA1.Name = "chkTDOA1"; chkTDOA1.Size = new Size(25, 25); - chkTDOA1.TabIndex = 9; + chkTDOA1.TabIndex = 40; chkTDOA1.UseVisualStyleBackColor = true; // - // label12 - // - label12.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label12.Location = new Point(205, 87); - label12.Margin = new Padding(0); - label12.Name = "label12"; - label12.Padding = new Padding(5, 0, 0, 0); - label12.Size = new Size(58, 25); - label12.TabIndex = 37; - label12.Text = "TDOA"; - label12.TextAlign = ContentAlignment.MiddleCenter; - // - // label13 + // txtSTN8 // - label13.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label13.Location = new Point(40, 86); - label13.Margin = new Padding(0); - label13.Name = "label13"; - label13.Padding = new Padding(5, 0, 0, 0); - label13.Size = new Size(51, 25); - label13.TabIndex = 37; - label13.Text = "Own"; - label13.TextAlign = ContentAlignment.MiddleCenter; + txtSTN8.AllowFraction = false; + txtSTN8.BackColor = SystemColors.Window; + txtSTN8.Location = new Point(87, 214); + txtSTN8.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN8.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN8.Name = "txtSTN8"; + txtSTN8.Size = new Size(104, 25); + txtSTN8.TabIndex = 60; + txtSTN8.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN8.Value = null; // - // radOwn1 + // txtSTN7 // - radOwn1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn1.Location = new Point(58, 111); - radOwn1.Name = "radOwn1"; - radOwn1.Size = new Size(20, 25); - radOwn1.TabIndex = 7; - radOwn1.TabStop = true; - radOwn1.UseVisualStyleBackColor = true; + txtSTN7.AllowFraction = false; + txtSTN7.BackColor = SystemColors.Window; + txtSTN7.Location = new Point(87, 187); + txtSTN7.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN7.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN7.Name = "txtSTN7"; + txtSTN7.Size = new Size(104, 25); + txtSTN7.TabIndex = 57; + txtSTN7.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN7.Value = null; // - // radOwn2 + // txtSTN6 // - radOwn2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn2.Location = new Point(58, 138); - radOwn2.Name = "radOwn2"; - radOwn2.Size = new Size(20, 25); - radOwn2.TabIndex = 10; - radOwn2.TabStop = true; - radOwn2.UseVisualStyleBackColor = true; + txtSTN6.AllowFraction = false; + txtSTN6.BackColor = SystemColors.Window; + txtSTN6.Location = new Point(87, 160); + txtSTN6.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN6.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN6.Name = "txtSTN6"; + txtSTN6.Size = new Size(104, 25); + txtSTN6.TabIndex = 54; + txtSTN6.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN6.Value = null; // - // radOwn3 + // txtSTN5 // - radOwn3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn3.Location = new Point(58, 165); - radOwn3.Name = "radOwn3"; - radOwn3.Size = new Size(20, 25); - radOwn3.TabIndex = 13; - radOwn3.TabStop = true; - radOwn3.UseVisualStyleBackColor = true; + txtSTN5.AllowFraction = false; + txtSTN5.BackColor = SystemColors.Window; + txtSTN5.Location = new Point(87, 133); + txtSTN5.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN5.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN5.Name = "txtSTN5"; + txtSTN5.Size = new Size(104, 25); + txtSTN5.TabIndex = 51; + txtSTN5.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN5.Value = null; // - // radOwn4 + // txtSTN4 // - radOwn4.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn4.Location = new Point(58, 192); - radOwn4.Name = "radOwn4"; - radOwn4.Size = new Size(20, 25); - radOwn4.TabIndex = 16; - radOwn4.TabStop = true; - radOwn4.UseVisualStyleBackColor = true; + txtSTN4.AllowFraction = false; + txtSTN4.BackColor = SystemColors.Window; + txtSTN4.Location = new Point(87, 106); + txtSTN4.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN4.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN4.Name = "txtSTN4"; + txtSTN4.Size = new Size(104, 25); + txtSTN4.TabIndex = 48; + txtSTN4.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN4.Value = null; // - // radOwn5 + // txtSTN3 // - radOwn5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn5.Location = new Point(58, 219); - radOwn5.Name = "radOwn5"; - radOwn5.Size = new Size(20, 25); - radOwn5.TabIndex = 19; - radOwn5.TabStop = true; - radOwn5.UseVisualStyleBackColor = true; + txtSTN3.AllowFraction = false; + txtSTN3.BackColor = SystemColors.Window; + txtSTN3.Location = new Point(87, 79); + txtSTN3.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN3.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN3.Name = "txtSTN3"; + txtSTN3.Size = new Size(104, 25); + txtSTN3.TabIndex = 45; + txtSTN3.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN3.Value = null; // - // radOwn6 + // txtSTN2 // - radOwn6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn6.Location = new Point(58, 246); - radOwn6.Name = "radOwn6"; - radOwn6.Size = new Size(20, 25); - radOwn6.TabIndex = 22; - radOwn6.TabStop = true; - radOwn6.UseVisualStyleBackColor = true; + txtSTN2.AllowFraction = false; + txtSTN2.BackColor = SystemColors.Window; + txtSTN2.Location = new Point(87, 52); + txtSTN2.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN2.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN2.Name = "txtSTN2"; + txtSTN2.Size = new Size(104, 25); + txtSTN2.TabIndex = 42; + txtSTN2.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN2.Value = null; // - // radOwn7 + // txtSTN1 // - radOwn7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn7.Location = new Point(58, 273); - radOwn7.Name = "radOwn7"; - radOwn7.Size = new Size(20, 25); - radOwn7.TabIndex = 25; - radOwn7.TabStop = true; - radOwn7.UseVisualStyleBackColor = true; + txtSTN1.AllowFraction = false; + txtSTN1.BackColor = SystemColors.Window; + txtSTN1.Location = new Point(87, 25); + txtSTN1.MaximumValue = new decimal(new int[] { 77777, 0, 0, 0 }); + txtSTN1.MinimumValue = new decimal(new int[] { 0, 0, 0, 0 }); + txtSTN1.Name = "txtSTN1"; + txtSTN1.Size = new Size(104, 25); + txtSTN1.TabIndex = 39; + txtSTN1.Unit = DTC.UI.Base.Controls.DTCNumericTextBox.UnitEnum.Octal; + txtSTN1.Value = null; // - // radOwn8 + // label10 // - radOwn8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - radOwn8.Location = new Point(58, 300); - radOwn8.Name = "radOwn8"; - radOwn8.Size = new Size(20, 25); - radOwn8.TabIndex = 28; - radOwn8.TabStop = true; - radOwn8.UseVisualStyleBackColor = true; + label10.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label10.Location = new Point(1, 214); + label10.Margin = new Padding(0); + label10.Name = "label10"; + label10.Padding = new Padding(5, 0, 0, 0); + label10.Size = new Size(30, 25); + label10.TabIndex = 62; + label10.Text = "8"; + label10.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA2 + // label9 // - chkTDOA2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA2.Location = new Point(224, 138); - chkTDOA2.Margin = new Padding(4); - chkTDOA2.Name = "chkTDOA2"; - chkTDOA2.Size = new Size(25, 25); - chkTDOA2.TabIndex = 12; - chkTDOA2.UseVisualStyleBackColor = true; + label9.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label9.Location = new Point(1, 187); + label9.Margin = new Padding(0); + label9.Name = "label9"; + label9.Padding = new Padding(5, 0, 0, 0); + label9.Size = new Size(30, 25); + label9.TabIndex = 63; + label9.Text = "7"; + label9.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA3 + // label8 // - chkTDOA3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA3.Location = new Point(224, 165); - chkTDOA3.Margin = new Padding(4); - chkTDOA3.Name = "chkTDOA3"; - chkTDOA3.Size = new Size(25, 25); - chkTDOA3.TabIndex = 15; - chkTDOA3.UseVisualStyleBackColor = true; + label8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label8.Location = new Point(1, 160); + label8.Margin = new Padding(0); + label8.Name = "label8"; + label8.Padding = new Padding(5, 0, 0, 0); + label8.Size = new Size(30, 25); + label8.TabIndex = 64; + label8.Text = "6"; + label8.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA4 + // label7 // - chkTDOA4.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA4.Location = new Point(224, 192); - chkTDOA4.Margin = new Padding(4); - chkTDOA4.Name = "chkTDOA4"; - chkTDOA4.Size = new Size(25, 25); - chkTDOA4.TabIndex = 18; - chkTDOA4.UseVisualStyleBackColor = true; + label7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label7.Location = new Point(1, 133); + label7.Margin = new Padding(0); + label7.Name = "label7"; + label7.Padding = new Padding(5, 0, 0, 0); + label7.Size = new Size(30, 25); + label7.TabIndex = 65; + label7.Text = "5"; + label7.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA5 + // label6 // - chkTDOA5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA5.Location = new Point(224, 219); - chkTDOA5.Margin = new Padding(4); - chkTDOA5.Name = "chkTDOA5"; - chkTDOA5.Size = new Size(25, 25); - chkTDOA5.TabIndex = 21; - chkTDOA5.UseVisualStyleBackColor = true; + label6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label6.Location = new Point(1, 106); + label6.Margin = new Padding(0); + label6.Name = "label6"; + label6.Padding = new Padding(5, 0, 0, 0); + label6.Size = new Size(30, 25); + label6.TabIndex = 66; + label6.Text = "4"; + label6.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA6 + // label5 // - chkTDOA6.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA6.Location = new Point(224, 246); - chkTDOA6.Margin = new Padding(4); - chkTDOA6.Name = "chkTDOA6"; - chkTDOA6.Size = new Size(25, 25); - chkTDOA6.TabIndex = 24; - chkTDOA6.UseVisualStyleBackColor = true; + label5.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label5.Location = new Point(1, 79); + label5.Margin = new Padding(0); + label5.Name = "label5"; + label5.Padding = new Padding(5, 0, 0, 0); + label5.Size = new Size(30, 25); + label5.TabIndex = 67; + label5.Text = "3"; + label5.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA7 + // label3 // - chkTDOA7.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA7.Location = new Point(224, 273); - chkTDOA7.Margin = new Padding(4); - chkTDOA7.Name = "chkTDOA7"; - chkTDOA7.Size = new Size(25, 25); - chkTDOA7.TabIndex = 27; - chkTDOA7.UseVisualStyleBackColor = true; + label3.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label3.Location = new Point(1, 52); + label3.Margin = new Padding(0); + label3.Name = "label3"; + label3.Padding = new Padding(5, 0, 0, 0); + label3.Size = new Size(30, 25); + label3.TabIndex = 68; + label3.Text = "2"; + label3.TextAlign = ContentAlignment.MiddleLeft; // - // chkTDOA8 + // label2 // - chkTDOA8.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkTDOA8.Location = new Point(224, 300); - chkTDOA8.Margin = new Padding(4); - chkTDOA8.Name = "chkTDOA8"; - chkTDOA8.Size = new Size(25, 25); - chkTDOA8.TabIndex = 30; - chkTDOA8.UseVisualStyleBackColor = true; + label2.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label2.Location = new Point(1, 25); + label2.Margin = new Padding(0); + label2.Name = "label2"; + label2.Padding = new Padding(5, 0, 0, 0); + label2.Size = new Size(30, 25); + label2.TabIndex = 69; + label2.Text = "1"; + label2.TextAlign = ContentAlignment.MiddleLeft; // - // chkFlightMembers + // label12 // - chkFlightMembers.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkFlightMembers.Location = new Point(15, 53); - chkFlightMembers.Margin = new Padding(4); - chkFlightMembers.Name = "chkFlightMembers"; - chkFlightMembers.Size = new Size(130, 25); - chkFlightMembers.TabIndex = 6; - chkFlightMembers.Text = "Flight members"; - chkFlightMembers.UseVisualStyleBackColor = true; + label12.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label12.Location = new Point(196, 1); + label12.Margin = new Padding(0); + label12.Name = "label12"; + label12.Padding = new Padding(5, 0, 0, 0); + label12.Size = new Size(58, 25); + label12.TabIndex = 70; + label12.Text = "TDOA"; + label12.TextAlign = ContentAlignment.MiddleCenter; // - // chkOwnCallsign + // label13 // - chkOwnCallsign.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - chkOwnCallsign.Location = new Point(15, 15); - chkOwnCallsign.Margin = new Padding(4); - chkOwnCallsign.Name = "chkOwnCallsign"; - chkOwnCallsign.Size = new Size(130, 25); - chkOwnCallsign.TabIndex = 0; - chkOwnCallsign.Text = "Own callsign:"; - chkOwnCallsign.UseVisualStyleBackColor = true; + label13.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label13.Location = new Point(31, 0); + label13.Margin = new Padding(0); + label13.Name = "label13"; + label13.Padding = new Padding(5, 0, 0, 0); + label13.Size = new Size(51, 25); + label13.TabIndex = 71; + label13.Text = "Own"; + label13.TextAlign = ContentAlignment.MiddleCenter; // - // label1 + // label11 // - label1.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - label1.Location = new Point(10, 344); - label1.Margin = new Padding(0); - label1.Name = "label1"; - label1.Padding = new Padding(5, 0, 0, 0); - label1.Size = new Size(111, 25); - label1.TabIndex = 38; - label1.Text = "Datalink Mode:"; - label1.TextAlign = ContentAlignment.MiddleLeft; + label11.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); + label11.Location = new Point(87, 1); + label11.Margin = new Padding(0); + label11.Name = "label11"; + label11.Padding = new Padding(5, 0, 0, 0); + label11.Size = new Size(104, 25); + label11.TabIndex = 72; + label11.Text = "STN"; + label11.TextAlign = ContentAlignment.MiddleCenter; // - // cboDatalinkMode + // pnlOwnCallsign // - cboDatalinkMode.DropDownStyle = ComboBoxStyle.DropDownList; - cboDatalinkMode.FlatStyle = FlatStyle.Flat; - cboDatalinkMode.Font = new Font("Microsoft Sans Serif", 10F, FontStyle.Regular, GraphicsUnit.Point); - cboDatalinkMode.FormattingEnabled = true; - cboDatalinkMode.Items.AddRange(new object[] { "", "OFF", "TNDL", "SMDL" }); - cboDatalinkMode.Location = new Point(124, 345); - cboDatalinkMode.Name = "cboDatalinkMode"; - cboDatalinkMode.Size = new Size(76, 24); - cboDatalinkMode.TabIndex = 31; + pnlOwnCallsign.Controls.Add(cboCallsign1); + pnlOwnCallsign.Controls.Add(cboCallsign2); + pnlOwnCallsign.Controls.Add(cboCallsign3); + pnlOwnCallsign.Controls.Add(cboCallsign4); + pnlOwnCallsign.Controls.Add(chkFlightLead); + pnlOwnCallsign.Location = new Point(126, 13); + pnlOwnCallsign.Name = "pnlOwnCallsign"; + pnlOwnCallsign.Size = new Size(397, 38); + pnlOwnCallsign.TabIndex = 40; // // DatalinkPage // AutoScaleDimensions = new SizeF(96F, 96F); AutoScaleMode = AutoScaleMode.Dpi; BackColor = Color.PaleGoldenrod; + Controls.Add(pnlOwnCallsign); + Controls.Add(pnlMembers); Controls.Add(cboDatalinkMode); Controls.Add(label1); Controls.Add(chkOwnCallsign); Controls.Add(chkFlightMembers); - Controls.Add(radOwn8); - Controls.Add(radOwn7); - Controls.Add(radOwn6); - Controls.Add(radOwn5); - Controls.Add(radOwn4); - Controls.Add(radOwn3); - Controls.Add(radOwn2); - Controls.Add(radOwn1); - Controls.Add(chkTDOA8); - Controls.Add(chkTDOA7); - Controls.Add(chkTDOA6); - Controls.Add(chkTDOA5); - Controls.Add(chkTDOA4); - Controls.Add(chkTDOA3); - Controls.Add(chkTDOA2); - Controls.Add(chkTDOA1); - Controls.Add(txtSTN8); - Controls.Add(txtSTN7); - Controls.Add(txtSTN6); - Controls.Add(txtSTN5); - Controls.Add(txtSTN4); - Controls.Add(txtSTN3); - Controls.Add(txtSTN2); - Controls.Add(txtSTN1); - Controls.Add(label10); - Controls.Add(label9); - Controls.Add(label8); - Controls.Add(label7); - Controls.Add(label6); - Controls.Add(label5); - Controls.Add(label3); - Controls.Add(label2); - Controls.Add(label12); - Controls.Add(label13); - Controls.Add(label11); - Controls.Add(chkFlightLead); - Controls.Add(cboCallsign4); - Controls.Add(cboCallsign3); - Controls.Add(cboCallsign2); - Controls.Add(cboCallsign1); Name = "DatalinkPage"; Size = new Size(785, 640); + pnlMembers.ResumeLayout(false); + pnlOwnCallsign.ResumeLayout(false); ResumeLayout(false); } @@ -637,44 +659,46 @@ private void InitializeComponent() private DTC.UI.Base.Controls.DTCDropDown cboCallsign3; private DTC.UI.Base.Controls.DTCDropDown cboCallsign4; private CheckBox chkFlightLead; - private Label label2; - private Label label3; - private Label label5; - private Label label6; - private Label label7; - private Label label8; - private Label label9; - private Label label10; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN1; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN2; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN3; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN4; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN5; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN6; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN7; - private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN8; - private Label label11; - private CheckBox chkTDOA1; - private Label label12; - private Label label13; - private RadioButton radOwn1; - private RadioButton radOwn2; - private RadioButton radOwn3; - private RadioButton radOwn4; - private RadioButton radOwn5; - private RadioButton radOwn6; - private RadioButton radOwn7; - private RadioButton radOwn8; - private CheckBox chkTDOA2; - private CheckBox chkTDOA3; - private CheckBox chkTDOA4; - private CheckBox chkTDOA5; - private CheckBox chkTDOA6; - private CheckBox chkTDOA7; - private CheckBox chkTDOA8; private CheckBox chkFlightMembers; private CheckBox chkOwnCallsign; private Label label1; private DTC.UI.Base.Controls.DTCDropDown cboDatalinkMode; + private Panel pnlMembers; + private RadioButton radOwn8; + private RadioButton radOwn7; + private RadioButton radOwn6; + private RadioButton radOwn5; + private RadioButton radOwn4; + private RadioButton radOwn3; + private RadioButton radOwn2; + private RadioButton radOwn1; + private CheckBox chkTDOA8; + private CheckBox chkTDOA7; + private CheckBox chkTDOA6; + private CheckBox chkTDOA5; + private CheckBox chkTDOA4; + private CheckBox chkTDOA3; + private CheckBox chkTDOA2; + private CheckBox chkTDOA1; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN8; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN7; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN6; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN5; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN4; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN3; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN2; + private DTC.UI.Base.Controls.DTCNumericTextBox txtSTN1; + private Label label10; + private Label label9; + private Label label8; + private Label label7; + private Label label6; + private Label label5; + private Label label3; + private Label label2; + private Label label12; + private Label label13; + private Label label11; + private Panel pnlOwnCallsign; } } diff --git a/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.cs b/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.cs index 8c2aa13..37243a8 100644 --- a/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.cs +++ b/dcs-dtc/New/UI/Aircrafts/F16/Systems/DatalinkPage.cs @@ -15,6 +15,7 @@ public DatalinkPage(F16Page parent, DatalinkSystem datalink) : base(parent) InitializeComponent(); chkOwnCallsign.Checked = datalink.EnableOwnCallsign ?? false; + pnlOwnCallsign.Enabled = chkOwnCallsign.Checked; if (!string.IsNullOrEmpty(datalink.OwnCallsign) && datalink.OwnCallsign.Length == 4) { cboCallsign1.SelectedItem = datalink.OwnCallsign[0].ToString(); @@ -25,6 +26,7 @@ public DatalinkPage(F16Page parent, DatalinkSystem datalink) : base(parent) chkFlightLead.Checked = datalink.FlightLead ?? false; chkFlightMembers.Checked = datalink.EnableMembers ?? false; + pnlMembers.Enabled = chkFlightMembers.Checked; if (datalink.OwnshipIndex.HasValue) { if (datalink.OwnshipIndex == 1) radOwn1.Checked = true; @@ -71,6 +73,7 @@ public DatalinkPage(F16Page parent, DatalinkSystem datalink) : base(parent) chkOwnCallsign.CheckedChanged += (s, e) => { datalink.EnableOwnCallsign = chkOwnCallsign.Checked; + pnlOwnCallsign.Enabled = chkOwnCallsign.Checked; this.SavePreset(); }; @@ -88,6 +91,7 @@ public DatalinkPage(F16Page parent, DatalinkSystem datalink) : base(parent) chkFlightMembers.CheckedChanged += (s, e) => { datalink.EnableMembers = chkFlightMembers.Checked; + pnlMembers.Enabled = chkFlightMembers.Checked; this.SavePreset(); }; diff --git a/dcs-dtc/New/Uploader/Aircrafts/F16/Systems/Datalink.cs b/dcs-dtc/New/Uploader/Aircrafts/F16/Systems/Datalink.cs index 8179d33..c862644 100644 --- a/dcs-dtc/New/Uploader/Aircrafts/F16/Systems/Datalink.cs +++ b/dcs-dtc/New/Uploader/Aircrafts/F16/Systems/Datalink.cs @@ -46,7 +46,7 @@ public void BuildDatalink() Cmd(UFC.SEQ); - if (config.Datalink.EnableMembers == true) + if (config.Datalink.EnableMembers == true && config.Datalink.Members != null) { Cmd(UFC.UP); Cmd(Digits(UFC, config.Datalink.OwnshipIndex.ToString())); @@ -56,9 +56,14 @@ public void BuildDatalink() for (int i = 0; i < 8; i++) { var member = config.Datalink.Members[i]; - var tdoa = config.Datalink.TDOAMembers[i]; + var tdoa = false; + + if (config.Datalink.TDOAMembers != null) + { + tdoa = config.Datalink.TDOAMembers[i]; + } - if (member > 0) continue; + if (member < 0) continue; Cmd(UFC.DOWN); Cmd(Digits(UFC, member.ToString()));