From 78a31ae1c85afd7fde6a49d1fe9d85965f566202 Mon Sep 17 00:00:00 2001 From: Virenbar Date: Sun, 26 May 2024 22:37:38 +0500 Subject: [PATCH] feat: rework UI --- GDPIControl/Config.cs | 14 +- GDPIControl/FormMain.Designer.cs | 2094 ++++------------- GDPIControl/FormMain.cs | 149 +- GDPIControl/FormMain.resx | 58 +- .../Forms/FormGDPISettings.Designer.cs | 1353 +++++++++++ GDPIControl/Forms/FormGDPISettings.cs | 99 + GDPIControl/Forms/FormGDPISettings.resx | 129 + GDPIControl/Model/ControlSettings.cs | 3 + GDPIControl/Model/GDPISettings.cs | 7 +- GDPIControl/Model/Modeset.cs | 5 +- GDPIControl/Resources/Icons8/Cancel16.png | Bin 0 -> 450 bytes .../Resources/Icons8/CopyToClipboard16.png | Bin 0 -> 400 bytes GDPIControl/Resources/Icons8/Ok16.png | Bin 0 -> 470 bytes GDPIControl/Resources/Icons8/Replace16.png | Bin 0 -> 544 bytes GDPIControl/icons8.Designer.cs | 70 +- GDPIControl/icons8.resx | 12 + 16 files changed, 2246 insertions(+), 1747 deletions(-) create mode 100644 GDPIControl/Forms/FormGDPISettings.Designer.cs create mode 100644 GDPIControl/Forms/FormGDPISettings.cs create mode 100644 GDPIControl/Forms/FormGDPISettings.resx create mode 100644 GDPIControl/Resources/Icons8/Cancel16.png create mode 100644 GDPIControl/Resources/Icons8/CopyToClipboard16.png create mode 100644 GDPIControl/Resources/Icons8/Ok16.png create mode 100644 GDPIControl/Resources/Icons8/Replace16.png diff --git a/GDPIControl/Config.cs b/GDPIControl/Config.cs index 935b33f..ab981e6 100644 --- a/GDPIControl/Config.cs +++ b/GDPIControl/Config.cs @@ -9,7 +9,13 @@ internal static class Config { public static ControlSettings Current { get; set; } - private static ControlSettings Default => new() { Modeset = Modeset.M5, GDPISettings = GDPISettings.ModesetSettings(Modeset.M5) }; + private static ControlSettings Default => new() + { + Modeset = Modeset.M5, + CustomSettings1 = new GDPISettings(), + CustomSettings2 = new GDPISettings(), + CustomSettings3 = new GDPISettings() + }; public static void Load() { @@ -20,6 +26,12 @@ public static void Load() var XS = new XmlSerializer(typeof(ControlSettings)); using var SR = new StreamReader(Constants.ConfigPath); Current = (ControlSettings)XS.Deserialize(SR); + + var def = Default; + if (Current.Modeset == Modeset.Custom) { Current.Modeset = Modeset.Custom1; } + Current.CustomSettings1 ??= Current.GDPISettings ?? def.CustomSettings1; + Current.CustomSettings2 ??= def.CustomSettings2; + Current.CustomSettings3 ??= def.CustomSettings3; } catch (Exception) { diff --git a/GDPIControl/FormMain.Designer.cs b/GDPIControl/FormMain.Designer.cs index f022ae3..5e46aed 100644 --- a/GDPIControl/FormMain.Designer.cs +++ b/GDPIControl/FormMain.Designer.cs @@ -28,1647 +28,578 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain)); - this.TrayControl = new System.Windows.Forms.NotifyIcon(this.components); - this.TrayMenu = new System.Windows.Forms.ContextMenuStrip(this.components); - this.MI_Start = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Stop = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Show = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Close = new System.Windows.Forms.ToolStripMenuItem(); - this.FormMenu = new System.Windows.Forms.MenuStrip(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Minimized = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Autostart = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Logon = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Blacklist = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_Userlist = new System.Windows.Forms.ToolStripMenuItem(); - this.MI_About = new System.Windows.Forms.ToolStripMenuItem(); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.B_Close = new System.Windows.Forms.Button(); - this.B_Start = new System.Windows.Forms.Button(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.checkBox3 = new System.Windows.Forms.CheckBox(); - this.BS_ControlSettings = new System.Windows.Forms.BindingSource(this.components); - this.checkBox2 = new System.Windows.Forms.CheckBox(); - this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); - this.RB_Custom = new System.Windows.Forms.RadioButton(); - this.label2 = new System.Windows.Forms.Label(); - this.RB_M1 = new System.Windows.Forms.RadioButton(); - this.RB_M2 = new System.Windows.Forms.RadioButton(); - this.RB_M3 = new System.Windows.Forms.RadioButton(); - this.RB_M4 = new System.Windows.Forms.RadioButton(); - this.label1 = new System.Windows.Forms.Label(); - this.RB_M5 = new System.Windows.Forms.RadioButton(); - this.RB_M6 = new System.Windows.Forms.RadioButton(); - this.B_Copy = new System.Windows.Forms.Button(); - this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); - this.tableLayoutPanel16 = new System.Windows.Forms.TableLayoutPanel(); - this.label17 = new System.Windows.Forms.Label(); - this.checkBox21 = new System.Windows.Forms.CheckBox(); - this.BS_GDPISettings = new System.Windows.Forms.BindingSource(this.components); - this.tableLayoutPanel14 = new System.Windows.Forms.TableLayoutPanel(); - this.label15 = new System.Windows.Forms.Label(); - this.checkBox15 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel15 = new System.Windows.Forms.TableLayoutPanel(); - this.label16 = new System.Windows.Forms.Label(); - this.checkBox17 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel10 = new System.Windows.Forms.TableLayoutPanel(); - this.label11 = new System.Windows.Forms.Label(); - this.checkBox18 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox9 = new System.Windows.Forms.CheckBox(); - this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); - this.label5 = new System.Windows.Forms.Label(); - this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox11 = new System.Windows.Forms.CheckBox(); - this.numericUpDown4 = new System.Windows.Forms.NumericUpDown(); - this.label7 = new System.Windows.Forms.Label(); - this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); - this.label4 = new System.Windows.Forms.Label(); - this.checkBox8 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox10 = new System.Windows.Forms.CheckBox(); - this.numericUpDown3 = new System.Windows.Forms.NumericUpDown(); - this.label6 = new System.Windows.Forms.Label(); - this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.label3 = new System.Windows.Forms.Label(); - this.checkBox16 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel11 = new System.Windows.Forms.TableLayoutPanel(); - this.label12 = new System.Windows.Forms.Label(); - this.checkBox19 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox12 = new System.Windows.Forms.CheckBox(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.label8 = new System.Windows.Forms.Label(); - this.textBox4 = new System.Windows.Forms.TextBox(); - this.tableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox13 = new System.Windows.Forms.CheckBox(); - this.textBox5 = new System.Windows.Forms.TextBox(); - this.label9 = new System.Windows.Forms.Label(); - this.textBox6 = new System.Windows.Forms.TextBox(); - this.tableLayoutPanel19 = new System.Windows.Forms.TableLayoutPanel(); - this.label20 = new System.Windows.Forms.Label(); - this.checkBox5 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox14 = new System.Windows.Forms.CheckBox(); - this.numericUpDown5 = new System.Windows.Forms.NumericUpDown(); - this.label10 = new System.Windows.Forms.Label(); - this.tableLayoutPanel18 = new System.Windows.Forms.TableLayoutPanel(); - this.label19 = new System.Windows.Forms.Label(); - this.checkBox4 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel17 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); - this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.label18 = new System.Windows.Forms.Label(); - this.tableLayoutPanel12 = new System.Windows.Forms.TableLayoutPanel(); - this.label13 = new System.Windows.Forms.Label(); - this.checkBox20 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel13 = new System.Windows.Forms.TableLayoutPanel(); - this.label14 = new System.Windows.Forms.Label(); - this.checkBox6 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel20 = new System.Windows.Forms.TableLayoutPanel(); - this.label21 = new System.Windows.Forms.Label(); - this.checkBox7 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel21 = new System.Windows.Forms.TableLayoutPanel(); - this.label22 = new System.Windows.Forms.Label(); - this.checkBox22 = new System.Windows.Forms.CheckBox(); - this.tableLayoutPanel22 = new System.Windows.Forms.TableLayoutPanel(); - this.checkBox23 = new System.Windows.Forms.CheckBox(); - this.numericUpDown6 = new System.Windows.Forms.NumericUpDown(); - this.label23 = new System.Windows.Forms.Label(); - this.TC_Main = new System.Windows.Forms.TabControl(); - this.TP_Modeset = new System.Windows.Forms.TabPage(); - this.TP_Custom = new System.Windows.Forms.TabPage(); - this.TrayMenu.SuspendLayout(); - this.FormMenu.SuspendLayout(); - this.tableLayoutPanel1.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.BS_ControlSettings)).BeginInit(); - this.flowLayoutPanel2.SuspendLayout(); - this.flowLayoutPanel4.SuspendLayout(); - this.tableLayoutPanel16.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.BS_GDPISettings)).BeginInit(); - this.tableLayoutPanel14.SuspendLayout(); - this.tableLayoutPanel15.SuspendLayout(); - this.tableLayoutPanel10.SuspendLayout(); - this.tableLayoutPanel4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); - this.tableLayoutPanel6.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit(); - this.tableLayoutPanel3.SuspendLayout(); - this.tableLayoutPanel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit(); - this.tableLayoutPanel2.SuspendLayout(); - this.tableLayoutPanel11.SuspendLayout(); - this.tableLayoutPanel7.SuspendLayout(); - this.tableLayoutPanel8.SuspendLayout(); - this.tableLayoutPanel19.SuspendLayout(); - this.tableLayoutPanel9.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit(); - this.tableLayoutPanel18.SuspendLayout(); - this.tableLayoutPanel17.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); - this.tableLayoutPanel12.SuspendLayout(); - this.tableLayoutPanel13.SuspendLayout(); - this.tableLayoutPanel20.SuspendLayout(); - this.tableLayoutPanel21.SuspendLayout(); - this.tableLayoutPanel22.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).BeginInit(); - this.TC_Main.SuspendLayout(); - this.TP_Modeset.SuspendLayout(); - this.TP_Custom.SuspendLayout(); - this.SuspendLayout(); + TrayControl = new System.Windows.Forms.NotifyIcon(components); + TrayMenu = new System.Windows.Forms.ContextMenuStrip(components); + MI_Start = new System.Windows.Forms.ToolStripMenuItem(); + MI_Stop = new System.Windows.Forms.ToolStripMenuItem(); + MI_Show = new System.Windows.Forms.ToolStripMenuItem(); + MI_Close = new System.Windows.Forms.ToolStripMenuItem(); + FormMenu = new System.Windows.Forms.MenuStrip(); + toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + MI_Minimized = new System.Windows.Forms.ToolStripMenuItem(); + MI_Autostart = new System.Windows.Forms.ToolStripMenuItem(); + MI_Logon = new System.Windows.Forms.ToolStripMenuItem(); + toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); + MI_Blacklist = new System.Windows.Forms.ToolStripMenuItem(); + MI_Userlist = new System.Windows.Forms.ToolStripMenuItem(); + MI_About = new System.Windows.Forms.ToolStripMenuItem(); + tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + B_Restart = new System.Windows.Forms.Button(); + B_Close = new System.Windows.Forms.Button(); + B_Start = new System.Windows.Forms.Button(); + flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + checkBox3 = new System.Windows.Forms.CheckBox(); + BS_ControlSettings = new System.Windows.Forms.BindingSource(components); + checkBox2 = new System.Windows.Forms.CheckBox(); + RB_Custom_1 = new System.Windows.Forms.RadioButton(); + RB_Custom_2 = new System.Windows.Forms.RadioButton(); + RB_Custom_3 = new System.Windows.Forms.RadioButton(); + RB_M1 = new System.Windows.Forms.RadioButton(); + RB_M2 = new System.Windows.Forms.RadioButton(); + RB_M3 = new System.Windows.Forms.RadioButton(); + RB_M4 = new System.Windows.Forms.RadioButton(); + RB_M5 = new System.Windows.Forms.RadioButton(); + RB_M6 = new System.Windows.Forms.RadioButton(); + B_Edit = new System.Windows.Forms.Button(); + groupBox1 = new System.Windows.Forms.GroupBox(); + flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); + groupBox2 = new System.Windows.Forms.GroupBox(); + flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); + groupBox3 = new System.Windows.Forms.GroupBox(); + flowLayoutPanel5 = new System.Windows.Forms.FlowLayoutPanel(); + tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + TrayMenu.SuspendLayout(); + FormMenu.SuspendLayout(); + tableLayoutPanel1.SuspendLayout(); + flowLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)BS_ControlSettings).BeginInit(); + groupBox1.SuspendLayout(); + flowLayoutPanel3.SuspendLayout(); + groupBox2.SuspendLayout(); + flowLayoutPanel4.SuspendLayout(); + groupBox3.SuspendLayout(); + flowLayoutPanel5.SuspendLayout(); + tableLayoutPanel2.SuspendLayout(); + SuspendLayout(); // // TrayControl // - this.TrayControl.ContextMenuStrip = this.TrayMenu; - this.TrayControl.Icon = ((System.Drawing.Icon)(resources.GetObject("TrayControl.Icon"))); - this.TrayControl.Text = "GDPIControl"; - this.TrayControl.Visible = true; - this.TrayControl.MouseClick += new System.Windows.Forms.MouseEventHandler(this.TrayControl_MouseClick); + TrayControl.ContextMenuStrip = TrayMenu; + TrayControl.Icon = (System.Drawing.Icon)resources.GetObject("TrayControl.Icon"); + TrayControl.Text = "GDPIControl"; + TrayControl.Visible = true; + TrayControl.MouseClick += TrayControl_MouseClick; // // TrayMenu // - this.TrayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.MI_Start, - this.MI_Stop, - this.MI_Show, - this.MI_Close}); - this.TrayMenu.Name = "TrayMenu"; - this.TrayMenu.Size = new System.Drawing.Size(173, 92); + TrayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { MI_Start, MI_Stop, MI_Show, MI_Close }); + TrayMenu.Name = "TrayMenu"; + TrayMenu.Size = new System.Drawing.Size(173, 92); // // MI_Start // - this.MI_Start.Image = global::GDPIControl.Properties.Resources.GDPI_green; - this.MI_Start.Name = "MI_Start"; - this.MI_Start.Size = new System.Drawing.Size(172, 22); - this.MI_Start.Text = "Start GDPI"; - this.MI_Start.Click += new System.EventHandler(this.MI_Start_Click); + MI_Start.Image = Properties.Resources.GDPI_green; + MI_Start.Name = "MI_Start"; + MI_Start.Size = new System.Drawing.Size(172, 22); + MI_Start.Text = "Start GDPI"; + MI_Start.Click += MI_Start_Click; // // MI_Stop // - this.MI_Stop.Image = global::GDPIControl.Properties.Resources.GDPI_red; - this.MI_Stop.Name = "MI_Stop"; - this.MI_Stop.Size = new System.Drawing.Size(172, 22); - this.MI_Stop.Text = "Stop GDPI"; - this.MI_Stop.Click += new System.EventHandler(this.MI_Stop_Click); + MI_Stop.Image = Properties.Resources.GDPI_red; + MI_Stop.Name = "MI_Stop"; + MI_Stop.Size = new System.Drawing.Size(172, 22); + MI_Stop.Text = "Stop GDPI"; + MI_Stop.Click += MI_Stop_Click; // // MI_Show // - this.MI_Show.Image = global::GDPIControl.icons8.settings16; - this.MI_Show.Name = "MI_Show"; - this.MI_Show.Size = new System.Drawing.Size(172, 22); - this.MI_Show.Text = "Show GDPIControl"; - this.MI_Show.Click += new System.EventHandler(this.MI_Show_Click); + MI_Show.Image = icons8.settings16; + MI_Show.Name = "MI_Show"; + MI_Show.Size = new System.Drawing.Size(172, 22); + MI_Show.Text = "Show GDPIControl"; + MI_Show.Click += MI_Show_Click; // // MI_Close // - this.MI_Close.Image = global::GDPIControl.icons8.shutdown16; - this.MI_Close.Name = "MI_Close"; - this.MI_Close.Size = new System.Drawing.Size(172, 22); - this.MI_Close.Text = "Close GDPIControl"; - this.MI_Close.Click += new System.EventHandler(this.MI_Close_Click); + MI_Close.Image = icons8.shutdown16; + MI_Close.Name = "MI_Close"; + MI_Close.Size = new System.Drawing.Size(172, 22); + MI_Close.Text = "Close GDPIControl"; + MI_Close.Click += MI_Close_Click; // // FormMenu // - this.FormMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem1, - this.toolStripMenuItem2, - this.toolStripMenuItem3, - this.MI_About}); - this.FormMenu.Location = new System.Drawing.Point(0, 0); - this.FormMenu.Name = "FormMenu"; - this.FormMenu.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2); - this.FormMenu.Size = new System.Drawing.Size(534, 24); - this.FormMenu.TabIndex = 1; - this.FormMenu.Text = "menuStrip1"; + FormMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { toolStripMenuItem1, toolStripMenuItem2, toolStripMenuItem3, MI_About }); + FormMenu.Location = new System.Drawing.Point(0, 0); + FormMenu.Name = "FormMenu"; + FormMenu.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2); + FormMenu.Size = new System.Drawing.Size(534, 24); + FormMenu.TabIndex = 1; + FormMenu.Text = "menuStrip1"; // // toolStripMenuItem1 // - this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.saveToolStripMenuItem, - this.loadToolStripMenuItem, - this.deleteToolStripMenuItem}); - this.toolStripMenuItem1.Enabled = false; - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(58, 20); - this.toolStripMenuItem1.Text = "Profiles"; - this.toolStripMenuItem1.Visible = false; + toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { saveToolStripMenuItem, loadToolStripMenuItem, deleteToolStripMenuItem }); + toolStripMenuItem1.Enabled = false; + toolStripMenuItem1.Name = "toolStripMenuItem1"; + toolStripMenuItem1.Size = new System.Drawing.Size(58, 20); + toolStripMenuItem1.Text = "Profiles"; + toolStripMenuItem1.Visible = false; // // saveToolStripMenuItem // - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.Size = new System.Drawing.Size(107, 22); - this.saveToolStripMenuItem.Text = "Save"; + saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + saveToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + saveToolStripMenuItem.Text = "Save"; // // loadToolStripMenuItem // - this.loadToolStripMenuItem.Name = "loadToolStripMenuItem"; - this.loadToolStripMenuItem.Size = new System.Drawing.Size(107, 22); - this.loadToolStripMenuItem.Text = "Load"; + loadToolStripMenuItem.Name = "loadToolStripMenuItem"; + loadToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + loadToolStripMenuItem.Text = "Load"; // // deleteToolStripMenuItem // - this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; - this.deleteToolStripMenuItem.Size = new System.Drawing.Size(107, 22); - this.deleteToolStripMenuItem.Text = "Delete"; + deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + deleteToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + deleteToolStripMenuItem.Text = "Delete"; // // toolStripMenuItem2 // - this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.MI_Minimized, - this.MI_Autostart, - this.MI_Logon}); - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(104, 20); - this.toolStripMenuItem2.Text = "Control Settings"; + toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { MI_Minimized, MI_Autostart, MI_Logon }); + toolStripMenuItem2.Name = "toolStripMenuItem2"; + toolStripMenuItem2.Size = new System.Drawing.Size(104, 20); + toolStripMenuItem2.Text = "Control Settings"; // // MI_Minimized // - this.MI_Minimized.CheckOnClick = true; - this.MI_Minimized.Name = "MI_Minimized"; - this.MI_Minimized.Size = new System.Drawing.Size(172, 22); - this.MI_Minimized.Text = "Launch minimized"; - this.MI_Minimized.CheckedChanged += new System.EventHandler(this.MI_Minimized_CheckedChanged); + MI_Minimized.CheckOnClick = true; + MI_Minimized.Name = "MI_Minimized"; + MI_Minimized.Size = new System.Drawing.Size(172, 22); + MI_Minimized.Text = "Launch minimized"; + MI_Minimized.CheckedChanged += MI_Minimized_CheckedChanged; // // MI_Autostart // - this.MI_Autostart.CheckOnClick = true; - this.MI_Autostart.Name = "MI_Autostart"; - this.MI_Autostart.Size = new System.Drawing.Size(172, 22); - this.MI_Autostart.Text = "Autostart GDPI"; - this.MI_Autostart.CheckedChanged += new System.EventHandler(this.MI_Autostart_CheckedChanged); + MI_Autostart.CheckOnClick = true; + MI_Autostart.Name = "MI_Autostart"; + MI_Autostart.Size = new System.Drawing.Size(172, 22); + MI_Autostart.Text = "Autostart GDPI"; + MI_Autostart.CheckedChanged += MI_Autostart_CheckedChanged; // // MI_Logon // - this.MI_Logon.CheckOnClick = true; - this.MI_Logon.Name = "MI_Logon"; - this.MI_Logon.Size = new System.Drawing.Size(172, 22); - this.MI_Logon.Text = "Launch on logon"; - this.MI_Logon.Click += new System.EventHandler(this.MI_Logon_Click); + MI_Logon.CheckOnClick = true; + MI_Logon.Name = "MI_Logon"; + MI_Logon.Size = new System.Drawing.Size(172, 22); + MI_Logon.Text = "Launch on logon"; + MI_Logon.Click += MI_Logon_Click; // // toolStripMenuItem3 // - this.toolStripMenuItem3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.MI_Blacklist, - this.MI_Userlist}); - this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(64, 20); - this.toolStripMenuItem3.Text = "Site Lists"; + toolStripMenuItem3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { MI_Blacklist, MI_Userlist }); + toolStripMenuItem3.Name = "toolStripMenuItem3"; + toolStripMenuItem3.Size = new System.Drawing.Size(64, 20); + toolStripMenuItem3.Text = "Site Lists"; // // MI_Blacklist // - this.MI_Blacklist.Name = "MI_Blacklist"; - this.MI_Blacklist.Size = new System.Drawing.Size(158, 22); - this.MI_Blacklist.Text = "Update Blacklist"; - this.MI_Blacklist.Click += new System.EventHandler(this.MI_Blacklist_Click); + MI_Blacklist.Name = "MI_Blacklist"; + MI_Blacklist.Size = new System.Drawing.Size(158, 22); + MI_Blacklist.Text = "Update Blacklist"; + MI_Blacklist.Click += MI_Blacklist_Click; // // MI_Userlist // - this.MI_Userlist.Name = "MI_Userlist"; - this.MI_Userlist.Size = new System.Drawing.Size(158, 22); - this.MI_Userlist.Text = "Open Userlist"; - this.MI_Userlist.Click += new System.EventHandler(this.MI_Userlist_Click); + MI_Userlist.Name = "MI_Userlist"; + MI_Userlist.Size = new System.Drawing.Size(158, 22); + MI_Userlist.Text = "Open Userlist"; + MI_Userlist.Click += MI_Userlist_Click; // // MI_About // - this.MI_About.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.MI_About.Image = global::GDPIControl.icons8.info16; - this.MI_About.Name = "MI_About"; - this.MI_About.Size = new System.Drawing.Size(68, 20); - this.MI_About.Text = "About"; - this.MI_About.Click += new System.EventHandler(this.MI_About_Click); + MI_About.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + MI_About.Image = icons8.info16; + MI_About.Name = "MI_About"; + MI_About.Size = new System.Drawing.Size(68, 20); + MI_About.Text = "About"; + MI_About.Click += MI_About_Click; // // tableLayoutPanel1 // - this.tableLayoutPanel1.AutoSize = true; - this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel1.ColumnCount = 3; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.Controls.Add(this.B_Close, 2, 0); - this.tableLayoutPanel1.Controls.Add(this.B_Start, 1, 0); - this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 530); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 1; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(534, 31); - this.tableLayoutPanel1.TabIndex = 2; + tableLayoutPanel1.AutoSize = true; + tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel1.ColumnCount = 3; + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + tableLayoutPanel1.Controls.Add(B_Restart, 0, 0); + tableLayoutPanel1.Controls.Add(B_Close, 2, 0); + tableLayoutPanel1.Controls.Add(B_Start, 1, 0); + tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + tableLayoutPanel1.Location = new System.Drawing.Point(0, 230); + tableLayoutPanel1.Name = "tableLayoutPanel1"; + tableLayoutPanel1.RowCount = 1; + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel1.Size = new System.Drawing.Size(534, 31); + tableLayoutPanel1.TabIndex = 2; + // + // B_Restart + // + B_Restart.AutoSize = true; + B_Restart.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_Restart.Image = icons8.Replace16; + B_Restart.Location = new System.Drawing.Point(3, 3); + B_Restart.Name = "B_Restart"; + B_Restart.Padding = new System.Windows.Forms.Padding(1); + B_Restart.Size = new System.Drawing.Size(99, 25); + B_Restart.TabIndex = 7; + B_Restart.Text = "Restart GDPI"; + B_Restart.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + B_Restart.UseVisualStyleBackColor = true; + B_Restart.Click += B_Restart_Click; // // B_Close // - this.B_Close.Anchor = System.Windows.Forms.AnchorStyles.Right; - this.B_Close.AutoSize = true; - this.B_Close.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.B_Close.Image = global::GDPIControl.icons8.shutdown16; - this.B_Close.Location = new System.Drawing.Point(401, 3); - this.B_Close.Name = "B_Close"; - this.B_Close.Padding = new System.Windows.Forms.Padding(1); - this.B_Close.Size = new System.Drawing.Size(130, 25); - this.B_Close.TabIndex = 3; - this.B_Close.Text = "Close GDPIControl"; - this.B_Close.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.B_Close.UseVisualStyleBackColor = true; - this.B_Close.Click += new System.EventHandler(this.B_Close_Click); + B_Close.Anchor = System.Windows.Forms.AnchorStyles.Right; + B_Close.AutoSize = true; + B_Close.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_Close.Image = icons8.shutdown16; + B_Close.Location = new System.Drawing.Point(401, 3); + B_Close.Name = "B_Close"; + B_Close.Padding = new System.Windows.Forms.Padding(1); + B_Close.Size = new System.Drawing.Size(130, 25); + B_Close.TabIndex = 3; + B_Close.Text = "Close GDPIControl"; + B_Close.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + B_Close.UseVisualStyleBackColor = true; + B_Close.Click += B_Close_Click; // // B_Start // - this.B_Start.Anchor = System.Windows.Forms.AnchorStyles.None; - this.B_Start.AutoSize = true; - this.B_Start.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.B_Start.Image = global::GDPIControl.Properties.Resources.GDPI_green; - this.B_Start.Location = new System.Drawing.Point(223, 3); - this.B_Start.Name = "B_Start"; - this.B_Start.Padding = new System.Windows.Forms.Padding(1); - this.B_Start.Size = new System.Drawing.Size(87, 25); - this.B_Start.TabIndex = 1; - this.B_Start.Text = "Start GDPI"; - this.B_Start.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.B_Start.UseVisualStyleBackColor = true; - this.B_Start.Click += new System.EventHandler(this.B_Start_Click); + B_Start.Anchor = System.Windows.Forms.AnchorStyles.None; + B_Start.AutoSize = true; + B_Start.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_Start.Image = Properties.Resources.GDPI_green; + B_Start.Location = new System.Drawing.Point(223, 3); + B_Start.Name = "B_Start"; + B_Start.Padding = new System.Windows.Forms.Padding(1); + B_Start.Size = new System.Drawing.Size(87, 25); + B_Start.TabIndex = 1; + B_Start.Text = "Start GDPI"; + B_Start.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + B_Start.UseVisualStyleBackColor = true; + B_Start.Click += B_Start_Click; // // flowLayoutPanel1 // - this.flowLayoutPanel1.AutoSize = true; - this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.flowLayoutPanel1.Controls.Add(this.checkBox3); - this.flowLayoutPanel1.Controls.Add(this.checkBox2); - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top; - this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 24); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Padding = new System.Windows.Forms.Padding(3); - this.flowLayoutPanel1.Size = new System.Drawing.Size(534, 29); - this.flowLayoutPanel1.TabIndex = 3; + flowLayoutPanel1.AutoSize = true; + flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + flowLayoutPanel1.Controls.Add(checkBox3); + flowLayoutPanel1.Controls.Add(checkBox2); + flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top; + flowLayoutPanel1.Location = new System.Drawing.Point(0, 24); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Padding = new System.Windows.Forms.Padding(3); + flowLayoutPanel1.Size = new System.Drawing.Size(534, 29); + flowLayoutPanel1.TabIndex = 3; // // checkBox3 // - this.checkBox3.AutoSize = true; - this.checkBox3.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_ControlSettings, "UseBlacklist", true)); - this.checkBox3.Location = new System.Drawing.Point(6, 6); - this.checkBox3.Name = "checkBox3"; - this.checkBox3.Size = new System.Drawing.Size(89, 17); - this.checkBox3.TabIndex = 6; - this.checkBox3.Text = "Use Blacklist"; - this.checkBox3.UseVisualStyleBackColor = true; + checkBox3.AutoSize = true; + checkBox3.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_ControlSettings, "UseBlacklist", true)); + checkBox3.Location = new System.Drawing.Point(6, 6); + checkBox3.Name = "checkBox3"; + checkBox3.Size = new System.Drawing.Size(89, 17); + checkBox3.TabIndex = 6; + checkBox3.Text = "Use Blacklist"; + checkBox3.UseVisualStyleBackColor = true; // // BS_ControlSettings // - this.BS_ControlSettings.DataSource = typeof(GDPIControl.Model.ControlSettings); + BS_ControlSettings.DataSource = typeof(Model.ControlSettings); // // checkBox2 // - this.checkBox2.AutoSize = true; - this.checkBox2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_ControlSettings, "UseUserlist", true)); - this.checkBox2.Location = new System.Drawing.Point(101, 6); - this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(86, 17); - this.checkBox2.TabIndex = 6; - this.checkBox2.Text = "Use Userlist"; - this.checkBox2.UseVisualStyleBackColor = true; - // - // flowLayoutPanel2 - // - this.flowLayoutPanel2.AutoSize = true; - this.flowLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.flowLayoutPanel2.Controls.Add(this.RB_Custom); - this.flowLayoutPanel2.Controls.Add(this.label2); - this.flowLayoutPanel2.Controls.Add(this.RB_M1); - this.flowLayoutPanel2.Controls.Add(this.RB_M2); - this.flowLayoutPanel2.Controls.Add(this.RB_M3); - this.flowLayoutPanel2.Controls.Add(this.RB_M4); - this.flowLayoutPanel2.Controls.Add(this.label1); - this.flowLayoutPanel2.Controls.Add(this.RB_M5); - this.flowLayoutPanel2.Controls.Add(this.RB_M6); - this.flowLayoutPanel2.Controls.Add(this.B_Copy); - this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Top; - this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 3); - this.flowLayoutPanel2.Name = "flowLayoutPanel2"; - this.flowLayoutPanel2.Size = new System.Drawing.Size(520, 216); - this.flowLayoutPanel2.TabIndex = 4; - this.flowLayoutPanel2.WrapContents = false; - // - // RB_Custom - // - this.RB_Custom.AutoSize = true; - this.RB_Custom.Location = new System.Drawing.Point(3, 3); - this.RB_Custom.Name = "RB_Custom"; - this.RB_Custom.Size = new System.Drawing.Size(92, 17); - this.RB_Custom.TabIndex = 6; - this.RB_Custom.TabStop = true; - this.RB_Custom.Text = "User settings"; - this.RB_Custom.UseVisualStyleBackColor = true; - this.RB_Custom.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(3, 23); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(97, 13); - this.label2.TabIndex = 5; - this.label2.Text = "LEGACY modesets"; + checkBox2.AutoSize = true; + checkBox2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_ControlSettings, "UseUserlist", true)); + checkBox2.Location = new System.Drawing.Point(101, 6); + checkBox2.Name = "checkBox2"; + checkBox2.Size = new System.Drawing.Size(86, 17); + checkBox2.TabIndex = 6; + checkBox2.Text = "Use Userlist"; + checkBox2.UseVisualStyleBackColor = true; + // + // RB_Custom_1 + // + RB_Custom_1.Anchor = System.Windows.Forms.AnchorStyles.Left; + RB_Custom_1.AutoSize = true; + RB_Custom_1.Location = new System.Drawing.Point(88, 6); + RB_Custom_1.Name = "RB_Custom_1"; + RB_Custom_1.Size = new System.Drawing.Size(117, 17); + RB_Custom_1.TabIndex = 6; + RB_Custom_1.TabStop = true; + RB_Custom_1.Text = "Custom settings 1"; + RB_Custom_1.UseVisualStyleBackColor = true; + RB_Custom_1.CheckedChanged += RB_CheckedChanged; + // + // RB_Custom_2 + // + RB_Custom_2.Anchor = System.Windows.Forms.AnchorStyles.Left; + RB_Custom_2.AutoSize = true; + RB_Custom_2.Location = new System.Drawing.Point(211, 6); + RB_Custom_2.Name = "RB_Custom_2"; + RB_Custom_2.Size = new System.Drawing.Size(117, 17); + RB_Custom_2.TabIndex = 6; + RB_Custom_2.TabStop = true; + RB_Custom_2.Text = "Custom settings 2"; + RB_Custom_2.UseVisualStyleBackColor = true; + RB_Custom_2.CheckedChanged += RB_CheckedChanged; + // + // RB_Custom_3 + // + RB_Custom_3.Anchor = System.Windows.Forms.AnchorStyles.Left; + RB_Custom_3.AutoSize = true; + RB_Custom_3.Location = new System.Drawing.Point(334, 6); + RB_Custom_3.Name = "RB_Custom_3"; + RB_Custom_3.Size = new System.Drawing.Size(117, 17); + RB_Custom_3.TabIndex = 6; + RB_Custom_3.TabStop = true; + RB_Custom_3.Text = "Custom settings 3"; + RB_Custom_3.UseVisualStyleBackColor = true; + RB_Custom_3.CheckedChanged += RB_CheckedChanged; // // RB_M1 // - this.RB_M1.AutoSize = true; - this.RB_M1.Location = new System.Drawing.Point(3, 39); - this.RB_M1.Name = "RB_M1"; - this.RB_M1.Size = new System.Drawing.Size(156, 17); - this.RB_M1.TabIndex = 1; - this.RB_M1.TabStop = true; - this.RB_M1.Text = "-1 Most compatible mode"; - this.RB_M1.UseVisualStyleBackColor = true; - this.RB_M1.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); + RB_M1.AutoSize = true; + RB_M1.Location = new System.Drawing.Point(3, 3); + RB_M1.Name = "RB_M1"; + RB_M1.Size = new System.Drawing.Size(156, 17); + RB_M1.TabIndex = 1; + RB_M1.TabStop = true; + RB_M1.Text = "-1 Most compatible mode"; + RB_M1.UseVisualStyleBackColor = true; + RB_M1.CheckedChanged += RB_CheckedChanged; // // RB_M2 // - this.RB_M2.AutoSize = true; - this.RB_M2.Location = new System.Drawing.Point(3, 62); - this.RB_M2.Name = "RB_M2"; - this.RB_M2.Size = new System.Drawing.Size(254, 17); - this.RB_M2.TabIndex = 2; - this.RB_M2.TabStop = true; - this.RB_M2.Text = "-2 Better speed for HTTPS yet still compatible"; - this.RB_M2.UseVisualStyleBackColor = true; - this.RB_M2.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); + RB_M2.AutoSize = true; + RB_M2.Location = new System.Drawing.Point(3, 49); + RB_M2.Name = "RB_M2"; + RB_M2.Size = new System.Drawing.Size(254, 17); + RB_M2.TabIndex = 2; + RB_M2.TabStop = true; + RB_M2.Text = "-2 Better speed for HTTPS yet still compatible"; + RB_M2.UseVisualStyleBackColor = true; + RB_M2.CheckedChanged += RB_CheckedChanged; // // RB_M3 // - this.RB_M3.AutoSize = true; - this.RB_M3.Location = new System.Drawing.Point(3, 85); - this.RB_M3.Name = "RB_M3"; - this.RB_M3.Size = new System.Drawing.Size(207, 17); - this.RB_M3.TabIndex = 3; - this.RB_M3.TabStop = true; - this.RB_M3.Text = "-3 Better speed for HTTP and HTTPS"; - this.RB_M3.UseVisualStyleBackColor = true; - this.RB_M3.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); + RB_M3.AutoSize = true; + RB_M3.Location = new System.Drawing.Point(3, 26); + RB_M3.Name = "RB_M3"; + RB_M3.Size = new System.Drawing.Size(207, 17); + RB_M3.TabIndex = 3; + RB_M3.TabStop = true; + RB_M3.Text = "-3 Better speed for HTTP and HTTPS"; + RB_M3.UseVisualStyleBackColor = true; + RB_M3.CheckedChanged += RB_CheckedChanged; // // RB_M4 // - this.RB_M4.AutoSize = true; - this.RB_M4.Location = new System.Drawing.Point(3, 108); - this.RB_M4.Name = "RB_M4"; - this.RB_M4.Size = new System.Drawing.Size(93, 17); - this.RB_M4.TabIndex = 4; - this.RB_M4.TabStop = true; - this.RB_M4.Text = "-4 Best speed"; - this.RB_M4.UseVisualStyleBackColor = true; - this.RB_M4.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(3, 128); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(100, 13); - this.label1.TabIndex = 5; - this.label1.Text = "Modern modesets"; + RB_M4.AutoSize = true; + RB_M4.Location = new System.Drawing.Point(3, 72); + RB_M4.Name = "RB_M4"; + RB_M4.Size = new System.Drawing.Size(93, 17); + RB_M4.TabIndex = 4; + RB_M4.TabStop = true; + RB_M4.Text = "-4 Best speed"; + RB_M4.UseVisualStyleBackColor = true; + RB_M4.CheckedChanged += RB_CheckedChanged; // // RB_M5 // - this.RB_M5.AutoSize = true; - this.RB_M5.Location = new System.Drawing.Point(3, 144); - this.RB_M5.Name = "RB_M5"; - this.RB_M5.Size = new System.Drawing.Size(81, 17); - this.RB_M5.TabIndex = 5; - this.RB_M5.TabStop = true; - this.RB_M5.Text = "-5 (default)"; - this.RB_M5.UseVisualStyleBackColor = true; - this.RB_M5.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); + RB_M5.AutoSize = true; + RB_M5.Location = new System.Drawing.Point(3, 3); + RB_M5.Name = "RB_M5"; + RB_M5.Size = new System.Drawing.Size(81, 17); + RB_M5.TabIndex = 5; + RB_M5.TabStop = true; + RB_M5.Text = "-5 (default)"; + RB_M5.UseVisualStyleBackColor = true; + RB_M5.CheckedChanged += RB_CheckedChanged; // // RB_M6 // - this.RB_M6.AutoSize = true; - this.RB_M6.Location = new System.Drawing.Point(3, 167); - this.RB_M6.Name = "RB_M6"; - this.RB_M6.Size = new System.Drawing.Size(35, 17); - this.RB_M6.TabIndex = 6; - this.RB_M6.TabStop = true; - this.RB_M6.Text = "-6"; - this.RB_M6.UseVisualStyleBackColor = true; - this.RB_M6.CheckedChanged += new System.EventHandler(this.RB_CheckedChanged); - // - // B_Copy - // - this.B_Copy.AutoSize = true; - this.B_Copy.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.B_Copy.Dock = System.Windows.Forms.DockStyle.Left; - this.B_Copy.Location = new System.Drawing.Point(3, 190); - this.B_Copy.Name = "B_Copy"; - this.B_Copy.Size = new System.Drawing.Size(126, 23); - this.B_Copy.TabIndex = 1; - this.B_Copy.Text = "Copy to user settings"; - this.B_Copy.UseVisualStyleBackColor = true; - this.B_Copy.Click += new System.EventHandler(this.B_Copy_Click); + RB_M6.AutoSize = true; + RB_M6.Location = new System.Drawing.Point(3, 26); + RB_M6.Name = "RB_M6"; + RB_M6.Size = new System.Drawing.Size(35, 17); + RB_M6.TabIndex = 6; + RB_M6.TabStop = true; + RB_M6.Text = "-6"; + RB_M6.UseVisualStyleBackColor = true; + RB_M6.CheckedChanged += RB_CheckedChanged; + // + // B_Edit + // + B_Edit.AutoSize = true; + B_Edit.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_Edit.Location = new System.Drawing.Point(3, 3); + B_Edit.Name = "B_Edit"; + B_Edit.Size = new System.Drawing.Size(79, 23); + B_Edit.TabIndex = 5; + B_Edit.Text = "Edit Custom"; + B_Edit.UseVisualStyleBackColor = true; + B_Edit.Click += B_Edit_Click; + // + // groupBox1 + // + groupBox1.AutoSize = true; + tableLayoutPanel2.SetColumnSpan(groupBox1, 2); + groupBox1.Controls.Add(flowLayoutPanel3); + groupBox1.Dock = System.Windows.Forms.DockStyle.Top; + groupBox1.Location = new System.Drawing.Point(3, 122); + groupBox1.Name = "groupBox1"; + groupBox1.Size = new System.Drawing.Size(528, 50); + groupBox1.TabIndex = 6; + groupBox1.TabStop = false; + groupBox1.Text = "Custom settings"; + // + // flowLayoutPanel3 + // + flowLayoutPanel3.AutoSize = true; + flowLayoutPanel3.Controls.Add(B_Edit); + flowLayoutPanel3.Controls.Add(RB_Custom_1); + flowLayoutPanel3.Controls.Add(RB_Custom_2); + flowLayoutPanel3.Controls.Add(RB_Custom_3); + flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Top; + flowLayoutPanel3.Location = new System.Drawing.Point(3, 18); + flowLayoutPanel3.Name = "flowLayoutPanel3"; + flowLayoutPanel3.Size = new System.Drawing.Size(522, 29); + flowLayoutPanel3.TabIndex = 7; + // + // groupBox2 + // + groupBox2.AutoSize = true; + groupBox2.Controls.Add(flowLayoutPanel4); + groupBox2.Dock = System.Windows.Forms.DockStyle.Top; + groupBox2.Location = new System.Drawing.Point(3, 3); + groupBox2.Name = "groupBox2"; + groupBox2.Size = new System.Drawing.Size(266, 113); + groupBox2.TabIndex = 6; + groupBox2.TabStop = false; + groupBox2.Text = "LEGACY modesets"; // // flowLayoutPanel4 // - this.flowLayoutPanel4.AutoScroll = true; - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel16); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel14); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel15); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel10); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel4); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel6); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel3); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel5); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel2); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel11); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel7); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel8); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel19); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel9); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel18); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel17); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel12); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel13); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel20); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel21); - this.flowLayoutPanel4.Controls.Add(this.tableLayoutPanel22); - this.flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.flowLayoutPanel4.Location = new System.Drawing.Point(3, 3); - this.flowLayoutPanel4.Name = "flowLayoutPanel4"; - this.flowLayoutPanel4.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0); - this.flowLayoutPanel4.Size = new System.Drawing.Size(520, 445); - this.flowLayoutPanel4.TabIndex = 7; - this.flowLayoutPanel4.WrapContents = false; - // - // tableLayoutPanel16 - // - this.tableLayoutPanel16.AutoSize = true; - this.tableLayoutPanel16.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel16.ColumnCount = 2; - this.tableLayoutPanel16.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel16.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel16.Controls.Add(this.label17, 1, 0); - this.tableLayoutPanel16.Controls.Add(this.checkBox21, 0, 0); - this.tableLayoutPanel16.Location = new System.Drawing.Point(1, 1); - this.tableLayoutPanel16.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel16.Name = "tableLayoutPanel16"; - this.tableLayoutPanel16.RowCount = 1; - this.tableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel16.Size = new System.Drawing.Size(135, 20); - this.tableLayoutPanel16.TabIndex = 14; - // - // label17 - // - this.label17.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label17.AutoSize = true; - this.label17.Location = new System.Drawing.Point(24, 3); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(108, 13); - this.label17.TabIndex = 0; - this.label17.Text = "-p Block passive DPI"; - // - // checkBox21 - // - this.checkBox21.AutoSize = true; - this.checkBox21.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "P", true)); - this.checkBox21.Location = new System.Drawing.Point(3, 3); - this.checkBox21.Name = "checkBox21"; - this.checkBox21.Size = new System.Drawing.Size(15, 14); - this.checkBox21.TabIndex = 1; - this.checkBox21.UseVisualStyleBackColor = true; - // - // BS_GDPISettings - // - this.BS_GDPISettings.DataSource = typeof(GDPIControl.Model.GDPISettings); - // - // tableLayoutPanel14 - // - this.tableLayoutPanel14.AutoSize = true; - this.tableLayoutPanel14.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel14.ColumnCount = 2; - this.tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel14.Controls.Add(this.label15, 1, 0); - this.tableLayoutPanel14.Controls.Add(this.checkBox15, 0, 0); - this.tableLayoutPanel14.Location = new System.Drawing.Point(1, 23); - this.tableLayoutPanel14.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel14.Name = "tableLayoutPanel14"; - this.tableLayoutPanel14.RowCount = 1; - this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel14.Size = new System.Drawing.Size(165, 20); - this.tableLayoutPanel14.TabIndex = 12; - // - // label15 - // - this.label15.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label15.AutoSize = true; - this.label15.Location = new System.Drawing.Point(24, 3); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(138, 13); - this.label15.TabIndex = 0; - this.label15.Text = "-r Replace Host with hoSt"; - // - // checkBox15 - // - this.checkBox15.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox15.AutoSize = true; - this.checkBox15.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "R", true)); - this.checkBox15.Location = new System.Drawing.Point(3, 3); - this.checkBox15.Name = "checkBox15"; - this.checkBox15.Size = new System.Drawing.Size(15, 14); - this.checkBox15.TabIndex = 1; - this.checkBox15.UseVisualStyleBackColor = true; - // - // tableLayoutPanel15 - // - this.tableLayoutPanel15.AutoSize = true; - this.tableLayoutPanel15.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel15.ColumnCount = 2; - this.tableLayoutPanel15.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel15.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel15.Controls.Add(this.label16, 1, 0); - this.tableLayoutPanel15.Controls.Add(this.checkBox17, 0, 0); - this.tableLayoutPanel15.Location = new System.Drawing.Point(1, 45); - this.tableLayoutPanel15.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel15.Name = "tableLayoutPanel15"; - this.tableLayoutPanel15.RowCount = 1; - this.tableLayoutPanel15.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel15.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel15.Size = new System.Drawing.Size(300, 20); - this.tableLayoutPanel15.TabIndex = 13; - // - // label16 - // - this.label16.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label16.AutoSize = true; - this.label16.Location = new System.Drawing.Point(24, 3); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(273, 13); - this.label16.TabIndex = 0; - this.label16.Text = "-s Remove space between host header And its value"; - // - // checkBox17 - // - this.checkBox17.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox17.AutoSize = true; - this.checkBox17.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "S", true)); - this.checkBox17.Location = new System.Drawing.Point(3, 3); - this.checkBox17.Name = "checkBox17"; - this.checkBox17.Size = new System.Drawing.Size(15, 14); - this.checkBox17.TabIndex = 1; - this.checkBox17.UseVisualStyleBackColor = true; - // - // tableLayoutPanel10 - // - this.tableLayoutPanel10.AutoSize = true; - this.tableLayoutPanel10.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel10.ColumnCount = 2; - this.tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel10.Controls.Add(this.label11, 1, 0); - this.tableLayoutPanel10.Controls.Add(this.checkBox18, 0, 0); - this.tableLayoutPanel10.Location = new System.Drawing.Point(1, 67); - this.tableLayoutPanel10.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel10.Name = "tableLayoutPanel10"; - this.tableLayoutPanel10.RowCount = 1; - this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel10.Size = new System.Drawing.Size(276, 20); - this.tableLayoutPanel10.TabIndex = 10; - // - // label11 - // - this.label11.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(24, 3); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(249, 13); - this.label11.TabIndex = 0; - this.label11.Text = "-m Mix Host header case (test.com -> tEsT.cOm)"; - // - // checkBox18 - // - this.checkBox18.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox18.AutoSize = true; - this.checkBox18.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "M", true)); - this.checkBox18.Location = new System.Drawing.Point(3, 3); - this.checkBox18.Name = "checkBox18"; - this.checkBox18.Size = new System.Drawing.Size(15, 14); - this.checkBox18.TabIndex = 1; - this.checkBox18.UseVisualStyleBackColor = true; - // - // tableLayoutPanel4 - // - this.tableLayoutPanel4.AutoSize = true; - this.tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel4.ColumnCount = 3; - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel4.Controls.Add(this.checkBox9, 0, 0); - this.tableLayoutPanel4.Controls.Add(this.numericUpDown2, 1, 0); - this.tableLayoutPanel4.Controls.Add(this.label5, 2, 0); - this.tableLayoutPanel4.Location = new System.Drawing.Point(1, 89); - this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel4.Name = "tableLayoutPanel4"; - this.tableLayoutPanel4.RowCount = 1; - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel4.Size = new System.Drawing.Size(260, 26); - this.tableLayoutPanel4.TabIndex = 8; - // - // checkBox9 - // - this.checkBox9.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox9.AutoSize = true; - this.checkBox9.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.BS_GDPISettings, "F", true)); - this.checkBox9.Location = new System.Drawing.Point(3, 6); - this.checkBox9.Name = "checkBox9"; - this.checkBox9.Size = new System.Drawing.Size(15, 14); - this.checkBox9.TabIndex = 0; - this.checkBox9.UseVisualStyleBackColor = true; - // - // numericUpDown2 - // - this.numericUpDown2.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown2.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "F_V", true)); - this.numericUpDown2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown2.Location = new System.Drawing.Point(24, 3); - this.numericUpDown2.Name = "numericUpDown2"; - this.numericUpDown2.Size = new System.Drawing.Size(43, 20); - this.numericUpDown2.TabIndex = 1; - // - // label5 - // - this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(73, 6); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(184, 13); - this.label5.TabIndex = 2; - this.label5.Text = "-f Set HTTP fragmentation to value"; - // - // tableLayoutPanel6 - // - this.tableLayoutPanel6.AutoSize = true; - this.tableLayoutPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel6.ColumnCount = 3; - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel6.Controls.Add(this.checkBox11, 0, 0); - this.tableLayoutPanel6.Controls.Add(this.numericUpDown4, 1, 0); - this.tableLayoutPanel6.Controls.Add(this.label7, 2, 0); - this.tableLayoutPanel6.Location = new System.Drawing.Point(1, 117); - this.tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel6.Name = "tableLayoutPanel6"; - this.tableLayoutPanel6.RowCount = 1; - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel6.Size = new System.Drawing.Size(447, 26); - this.tableLayoutPanel6.TabIndex = 8; - // - // checkBox11 - // - this.checkBox11.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox11.AutoSize = true; - this.checkBox11.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.BS_GDPISettings, "K", true)); - this.checkBox11.Location = new System.Drawing.Point(3, 6); - this.checkBox11.Name = "checkBox11"; - this.checkBox11.Size = new System.Drawing.Size(15, 14); - this.checkBox11.TabIndex = 0; - this.checkBox11.UseVisualStyleBackColor = true; - // - // numericUpDown4 - // - this.numericUpDown4.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown4.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "K_V", true)); - this.numericUpDown4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown4.Location = new System.Drawing.Point(24, 3); - this.numericUpDown4.Name = "numericUpDown4"; - this.numericUpDown4.Size = new System.Drawing.Size(43, 20); - this.numericUpDown4.TabIndex = 1; - // - // label7 - // - this.label7.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(73, 6); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(371, 13); - this.label7.TabIndex = 2; - this.label7.Text = "-k Enable HTTP persistent (keep-alive) fragmentation and set it to value"; - // - // tableLayoutPanel3 - // - this.tableLayoutPanel3.AutoSize = true; - this.tableLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel3.ColumnCount = 2; - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel3.Controls.Add(this.label4, 1, 0); - this.tableLayoutPanel3.Controls.Add(this.checkBox8, 0, 0); - this.tableLayoutPanel3.Location = new System.Drawing.Point(1, 145); - this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel3.Name = "tableLayoutPanel3"; - this.tableLayoutPanel3.RowCount = 1; - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel3.Size = new System.Drawing.Size(321, 20); - this.tableLayoutPanel3.TabIndex = 9; - // - // label4 - // - this.label4.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(24, 3); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(294, 13); - this.label4.TabIndex = 0; - this.label4.Text = "-n Do not wait for first segment ACK when -k is enabled"; - // - // checkBox8 - // - this.checkBox8.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox8.AutoSize = true; - this.checkBox8.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "N", true)); - this.checkBox8.Location = new System.Drawing.Point(3, 3); - this.checkBox8.Name = "checkBox8"; - this.checkBox8.Size = new System.Drawing.Size(15, 14); - this.checkBox8.TabIndex = 1; - this.checkBox8.UseVisualStyleBackColor = true; - // - // tableLayoutPanel5 - // - this.tableLayoutPanel5.AutoSize = true; - this.tableLayoutPanel5.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel5.ColumnCount = 3; - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel5.Controls.Add(this.checkBox10, 0, 0); - this.tableLayoutPanel5.Controls.Add(this.numericUpDown3, 1, 0); - this.tableLayoutPanel5.Controls.Add(this.label6, 2, 0); - this.tableLayoutPanel5.Location = new System.Drawing.Point(1, 167); - this.tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel5.Name = "tableLayoutPanel5"; - this.tableLayoutPanel5.RowCount = 1; - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel5.Size = new System.Drawing.Size(268, 26); - this.tableLayoutPanel5.TabIndex = 8; - // - // checkBox10 - // - this.checkBox10.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox10.AutoSize = true; - this.checkBox10.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "E", true)); - this.checkBox10.Location = new System.Drawing.Point(3, 6); - this.checkBox10.Name = "checkBox10"; - this.checkBox10.Size = new System.Drawing.Size(15, 14); - this.checkBox10.TabIndex = 0; - this.checkBox10.UseVisualStyleBackColor = true; - // - // numericUpDown3 - // - this.numericUpDown3.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown3.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "E_V", true)); - this.numericUpDown3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown3.Location = new System.Drawing.Point(24, 3); - this.numericUpDown3.Name = "numericUpDown3"; - this.numericUpDown3.Size = new System.Drawing.Size(43, 20); - this.numericUpDown3.TabIndex = 1; - // - // label6 - // - this.label6.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(73, 6); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(192, 13); - this.label6.TabIndex = 2; - this.label6.Text = "-e Set HTTPS fragmentation to value"; + flowLayoutPanel4.AutoSize = true; + flowLayoutPanel4.Controls.Add(RB_M1); + flowLayoutPanel4.Controls.Add(RB_M3); + flowLayoutPanel4.Controls.Add(RB_M2); + flowLayoutPanel4.Controls.Add(RB_M4); + flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + flowLayoutPanel4.Location = new System.Drawing.Point(3, 18); + flowLayoutPanel4.Name = "flowLayoutPanel4"; + flowLayoutPanel4.Size = new System.Drawing.Size(260, 92); + flowLayoutPanel4.TabIndex = 7; + flowLayoutPanel4.WrapContents = false; + // + // groupBox3 + // + groupBox3.AutoSize = true; + groupBox3.Controls.Add(flowLayoutPanel5); + groupBox3.Dock = System.Windows.Forms.DockStyle.Top; + groupBox3.Location = new System.Drawing.Point(275, 3); + groupBox3.Name = "groupBox3"; + groupBox3.Size = new System.Drawing.Size(256, 67); + groupBox3.TabIndex = 6; + groupBox3.TabStop = false; + groupBox3.Text = "Modern modesets"; + // + // flowLayoutPanel5 + // + flowLayoutPanel5.AutoSize = true; + flowLayoutPanel5.Controls.Add(RB_M5); + flowLayoutPanel5.Controls.Add(RB_M6); + flowLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel5.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + flowLayoutPanel5.Location = new System.Drawing.Point(3, 18); + flowLayoutPanel5.Name = "flowLayoutPanel5"; + flowLayoutPanel5.Size = new System.Drawing.Size(250, 46); + flowLayoutPanel5.TabIndex = 7; + flowLayoutPanel5.WrapContents = false; // // tableLayoutPanel2 // - this.tableLayoutPanel2.AutoSize = true; - this.tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel2.ColumnCount = 2; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.Controls.Add(this.label3, 1, 0); - this.tableLayoutPanel2.Controls.Add(this.checkBox16, 0, 0); - this.tableLayoutPanel2.Location = new System.Drawing.Point(1, 195); - this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 1; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(461, 20); - this.tableLayoutPanel2.TabIndex = 8; - // - // label3 - // - this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(24, 3); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(434, 13); - this.label3.TabIndex = 0; - this.label3.Text = "-a Additional space between Method And Request-URI (enables -s, may break sites)"; - // - // checkBox16 - // - this.checkBox16.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox16.AutoSize = true; - this.checkBox16.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "A", true)); - this.checkBox16.Location = new System.Drawing.Point(3, 3); - this.checkBox16.Name = "checkBox16"; - this.checkBox16.Size = new System.Drawing.Size(15, 14); - this.checkBox16.TabIndex = 6; - this.checkBox16.UseVisualStyleBackColor = true; - // - // tableLayoutPanel11 - // - this.tableLayoutPanel11.AutoSize = true; - this.tableLayoutPanel11.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel11.ColumnCount = 2; - this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel11.Controls.Add(this.label12, 1, 0); - this.tableLayoutPanel11.Controls.Add(this.checkBox19, 0, 0); - this.tableLayoutPanel11.Location = new System.Drawing.Point(1, 217); - this.tableLayoutPanel11.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel11.Name = "tableLayoutPanel11"; - this.tableLayoutPanel11.RowCount = 1; - this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel11.Size = new System.Drawing.Size(446, 20); - this.tableLayoutPanel11.TabIndex = 11; - // - // label12 - // - this.label12.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(24, 3); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(419, 13); - this.label12.TabIndex = 0; - this.label12.Text = "-w Try to find And parse HTTP traffic on all processed ports (Not only on port 80" + - ")"; - // - // checkBox19 - // - this.checkBox19.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox19.AutoSize = true; - this.checkBox19.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "W", true)); - this.checkBox19.Location = new System.Drawing.Point(3, 3); - this.checkBox19.Name = "checkBox19"; - this.checkBox19.Size = new System.Drawing.Size(15, 14); - this.checkBox19.TabIndex = 1; - this.checkBox19.UseVisualStyleBackColor = true; - // - // tableLayoutPanel7 - // - this.tableLayoutPanel7.AutoSize = true; - this.tableLayoutPanel7.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel7.ColumnCount = 4; - this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel7.Controls.Add(this.checkBox12, 0, 0); - this.tableLayoutPanel7.Controls.Add(this.textBox3, 1, 0); - this.tableLayoutPanel7.Controls.Add(this.label8, 3, 0); - this.tableLayoutPanel7.Controls.Add(this.textBox4, 2, 0); - this.tableLayoutPanel7.Location = new System.Drawing.Point(1, 239); - this.tableLayoutPanel7.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel7.Name = "tableLayoutPanel7"; - this.tableLayoutPanel7.RowCount = 1; - this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel7.Size = new System.Drawing.Size(491, 26); - this.tableLayoutPanel7.TabIndex = 9; - // - // checkBox12 - // - this.checkBox12.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox12.AutoSize = true; - this.checkBox12.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "DNS_State", true)); - this.checkBox12.Location = new System.Drawing.Point(3, 6); - this.checkBox12.Name = "checkBox12"; - this.checkBox12.Size = new System.Drawing.Size(15, 14); - this.checkBox12.TabIndex = 0; - this.checkBox12.UseVisualStyleBackColor = true; - // - // textBox3 - // - this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BS_GDPISettings, "DNS_Addr", true)); - this.textBox3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.textBox3.Location = new System.Drawing.Point(24, 3); - this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(129, 20); - this.textBox3.TabIndex = 0; - // - // label8 - // - this.label8.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(208, 0); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(243, 26); - this.label8.TabIndex = 2; - this.label8.Text = "Redirect UDP DNS requests to the supplied IP address:port"; - // - // textBox4 - // - this.textBox4.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BS_GDPISettings, "DNS_Port", true)); - this.textBox4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.textBox4.Location = new System.Drawing.Point(159, 3); - this.textBox4.Name = "textBox4"; - this.textBox4.Size = new System.Drawing.Size(43, 20); - this.textBox4.TabIndex = 0; - // - // tableLayoutPanel8 - // - this.tableLayoutPanel8.AutoSize = true; - this.tableLayoutPanel8.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel8.ColumnCount = 4; - this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel8.Controls.Add(this.checkBox13, 0, 0); - this.tableLayoutPanel8.Controls.Add(this.textBox5, 1, 0); - this.tableLayoutPanel8.Controls.Add(this.label9, 3, 0); - this.tableLayoutPanel8.Controls.Add(this.textBox6, 2, 0); - this.tableLayoutPanel8.Location = new System.Drawing.Point(1, 267); - this.tableLayoutPanel8.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel8.Name = "tableLayoutPanel8"; - this.tableLayoutPanel8.RowCount = 1; - this.tableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel8.Size = new System.Drawing.Size(491, 26); - this.tableLayoutPanel8.TabIndex = 9; - // - // checkBox13 - // - this.checkBox13.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox13.AutoSize = true; - this.checkBox13.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "DNS6_State", true)); - this.checkBox13.Location = new System.Drawing.Point(3, 6); - this.checkBox13.Name = "checkBox13"; - this.checkBox13.Size = new System.Drawing.Size(15, 14); - this.checkBox13.TabIndex = 0; - this.checkBox13.UseVisualStyleBackColor = true; - // - // textBox5 - // - this.textBox5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.textBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BS_GDPISettings, "DNS6_Addr", true)); - this.textBox5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.textBox5.Location = new System.Drawing.Point(24, 3); - this.textBox5.Name = "textBox5"; - this.textBox5.Size = new System.Drawing.Size(129, 20); - this.textBox5.TabIndex = 0; - // - // label9 - // - this.label9.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label9.AutoSize = true; - this.label9.Location = new System.Drawing.Point(208, 0); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(265, 26); - this.label9.TabIndex = 2; - this.label9.Text = "Redirect UDPv6 DNS requests to the supplied IPv6 address:port"; - // - // textBox6 - // - this.textBox6.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.textBox6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BS_GDPISettings, "DNS6_Port", true)); - this.textBox6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.textBox6.Location = new System.Drawing.Point(159, 3); - this.textBox6.Name = "textBox6"; - this.textBox6.Size = new System.Drawing.Size(43, 20); - this.textBox6.TabIndex = 0; - // - // tableLayoutPanel19 - // - this.tableLayoutPanel19.AutoSize = true; - this.tableLayoutPanel19.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel19.ColumnCount = 2; - this.tableLayoutPanel19.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel19.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel19.Controls.Add(this.label20, 1, 0); - this.tableLayoutPanel19.Controls.Add(this.checkBox5, 0, 0); - this.tableLayoutPanel19.Location = new System.Drawing.Point(1, 295); - this.tableLayoutPanel19.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel19.Name = "tableLayoutPanel19"; - this.tableLayoutPanel19.RowCount = 1; - this.tableLayoutPanel19.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel19.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel19.Size = new System.Drawing.Size(415, 20); - this.tableLayoutPanel19.TabIndex = 12; - // - // label20 - // - this.label20.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label20.AutoSize = true; - this.label20.Location = new System.Drawing.Point(24, 3); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(388, 13); - this.label20.TabIndex = 0; - this.label20.Text = "Perform circumvention if TLS SNI can\'t be detected with --blacklist enabled"; - // - // checkBox5 - // - this.checkBox5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox5.AutoSize = true; - this.checkBox5.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "SNI", true)); - this.checkBox5.Location = new System.Drawing.Point(3, 3); - this.checkBox5.Name = "checkBox5"; - this.checkBox5.Size = new System.Drawing.Size(15, 14); - this.checkBox5.TabIndex = 1; - this.checkBox5.UseVisualStyleBackColor = true; - // - // tableLayoutPanel9 - // - this.tableLayoutPanel9.AutoSize = true; - this.tableLayoutPanel9.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel9.ColumnCount = 3; - this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel9.Controls.Add(this.checkBox14, 0, 0); - this.tableLayoutPanel9.Controls.Add(this.numericUpDown5, 1, 0); - this.tableLayoutPanel9.Controls.Add(this.label10, 2, 0); - this.tableLayoutPanel9.Location = new System.Drawing.Point(1, 317); - this.tableLayoutPanel9.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel9.Name = "tableLayoutPanel9"; - this.tableLayoutPanel9.RowCount = 1; - this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel9.Size = new System.Drawing.Size(434, 26); - this.tableLayoutPanel9.TabIndex = 8; - // - // checkBox14 - // - this.checkBox14.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox14.AutoSize = true; - this.checkBox14.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "STTL", true)); - this.checkBox14.Location = new System.Drawing.Point(3, 6); - this.checkBox14.Name = "checkBox14"; - this.checkBox14.Size = new System.Drawing.Size(15, 14); - this.checkBox14.TabIndex = 0; - this.checkBox14.UseVisualStyleBackColor = true; - // - // numericUpDown5 - // - this.numericUpDown5.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown5.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "STTL_V", true)); - this.numericUpDown5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown5.Location = new System.Drawing.Point(24, 3); - this.numericUpDown5.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericUpDown5.Name = "numericUpDown5"; - this.numericUpDown5.Size = new System.Drawing.Size(63, 20); - this.numericUpDown5.TabIndex = 1; - // - // label10 - // - this.label10.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(93, 6); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(338, 13); - this.label10.TabIndex = 2; - this.label10.Text = "Activate Fake Request Mode And send it with supplied TTL value"; - // - // tableLayoutPanel18 - // - this.tableLayoutPanel18.AutoSize = true; - this.tableLayoutPanel18.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel18.ColumnCount = 2; - this.tableLayoutPanel18.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel18.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel18.Controls.Add(this.label19, 1, 0); - this.tableLayoutPanel18.Controls.Add(this.checkBox4, 0, 0); - this.tableLayoutPanel18.Location = new System.Drawing.Point(1, 345); - this.tableLayoutPanel18.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel18.Name = "tableLayoutPanel18"; - this.tableLayoutPanel18.RowCount = 1; - this.tableLayoutPanel18.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel18.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel18.Size = new System.Drawing.Size(491, 26); - this.tableLayoutPanel18.TabIndex = 12; - // - // label19 - // - this.label19.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label19.AutoSize = true; - this.label19.Location = new System.Drawing.Point(24, 0); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(425, 26); - this.label19.TabIndex = 0; - this.label19.Text = "Activate Fake Request Mode, automatically detect TTL and decrease it based on a d" + - "istance"; - // - // checkBox4 - // - this.checkBox4.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox4.AutoSize = true; - this.checkBox4.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "ATTL", true)); - this.checkBox4.Location = new System.Drawing.Point(3, 6); - this.checkBox4.Name = "checkBox4"; - this.checkBox4.Size = new System.Drawing.Size(15, 14); - this.checkBox4.TabIndex = 1; - this.checkBox4.UseVisualStyleBackColor = true; - // - // tableLayoutPanel17 - // - this.tableLayoutPanel17.AutoSize = true; - this.tableLayoutPanel17.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel17.ColumnCount = 3; - this.tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel17.Controls.Add(this.checkBox1, 0, 0); - this.tableLayoutPanel17.Controls.Add(this.numericUpDown1, 1, 0); - this.tableLayoutPanel17.Controls.Add(this.label18, 2, 0); - this.tableLayoutPanel17.Location = new System.Drawing.Point(1, 373); - this.tableLayoutPanel17.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel17.Name = "tableLayoutPanel17"; - this.tableLayoutPanel17.RowCount = 1; - this.tableLayoutPanel17.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel17.Size = new System.Drawing.Size(491, 26); - this.tableLayoutPanel17.TabIndex = 15; - // - // checkBox1 - // - this.checkBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox1.AutoSize = true; - this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "MTTL", true)); - this.checkBox1.Location = new System.Drawing.Point(3, 6); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(15, 14); - this.checkBox1.TabIndex = 0; - this.checkBox1.UseVisualStyleBackColor = true; - // - // numericUpDown1 - // - this.numericUpDown1.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown1.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "MTTL_V", true)); - this.numericUpDown1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown1.Location = new System.Drawing.Point(24, 3); - this.numericUpDown1.Name = "numericUpDown1"; - this.numericUpDown1.Size = new System.Drawing.Size(63, 20); - this.numericUpDown1.TabIndex = 1; - // - // label18 - // - this.label18.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label18.AutoSize = true; - this.label18.Location = new System.Drawing.Point(93, 0); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(373, 26); - this.label18.TabIndex = 2; - this.label18.Text = "Minimum TTL distance (128/64 - TTL) for which to send Fake Request in --set-ttl a" + - "nd --auto-ttl modes"; - // - // tableLayoutPanel12 - // - this.tableLayoutPanel12.AutoSize = true; - this.tableLayoutPanel12.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel12.ColumnCount = 2; - this.tableLayoutPanel12.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel12.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel12.Controls.Add(this.label13, 1, 0); - this.tableLayoutPanel12.Controls.Add(this.checkBox20, 0, 0); - this.tableLayoutPanel12.Location = new System.Drawing.Point(1, 401); - this.tableLayoutPanel12.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel12.Name = "tableLayoutPanel12"; - this.tableLayoutPanel12.RowCount = 1; - this.tableLayoutPanel12.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel12.Size = new System.Drawing.Size(389, 20); - this.tableLayoutPanel12.TabIndex = 12; - // - // label13 - // - this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(24, 3); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(362, 13); - this.label13.TabIndex = 0; - this.label13.Text = "Activate Fake Request Mode And send it with incorrect TCP checksum"; - // - // checkBox20 - // - this.checkBox20.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox20.AutoSize = true; - this.checkBox20.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "ChkSum", true)); - this.checkBox20.Location = new System.Drawing.Point(3, 3); - this.checkBox20.Name = "checkBox20"; - this.checkBox20.Size = new System.Drawing.Size(15, 14); - this.checkBox20.TabIndex = 1; - this.checkBox20.UseVisualStyleBackColor = true; - // - // tableLayoutPanel13 - // - this.tableLayoutPanel13.AutoSize = true; - this.tableLayoutPanel13.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel13.ColumnCount = 2; - this.tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel13.Controls.Add(this.label14, 1, 0); - this.tableLayoutPanel13.Controls.Add(this.checkBox6, 0, 0); - this.tableLayoutPanel13.Location = new System.Drawing.Point(1, 423); - this.tableLayoutPanel13.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel13.Name = "tableLayoutPanel13"; - this.tableLayoutPanel13.RowCount = 1; - this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel13.Size = new System.Drawing.Size(392, 20); - this.tableLayoutPanel13.TabIndex = 16; - // - // label14 - // - this.label14.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label14.AutoSize = true; - this.label14.Location = new System.Drawing.Point(24, 3); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(365, 13); - this.label14.TabIndex = 0; - this.label14.Text = "Activate Fake Request Mode and send it with TCP SEQ/ACK in the past"; - // - // checkBox6 - // - this.checkBox6.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox6.AutoSize = true; - this.checkBox6.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "Seq", true)); - this.checkBox6.Location = new System.Drawing.Point(3, 3); - this.checkBox6.Name = "checkBox6"; - this.checkBox6.Size = new System.Drawing.Size(15, 14); - this.checkBox6.TabIndex = 1; - this.checkBox6.UseVisualStyleBackColor = true; - // - // tableLayoutPanel20 - // - this.tableLayoutPanel20.AutoSize = true; - this.tableLayoutPanel20.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel20.ColumnCount = 2; - this.tableLayoutPanel20.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel20.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel20.Controls.Add(this.label21, 1, 0); - this.tableLayoutPanel20.Controls.Add(this.checkBox7, 0, 0); - this.tableLayoutPanel20.Location = new System.Drawing.Point(1, 445); - this.tableLayoutPanel20.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel20.Name = "tableLayoutPanel20"; - this.tableLayoutPanel20.RowCount = 1; - this.tableLayoutPanel20.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel20.Size = new System.Drawing.Size(491, 26); - this.tableLayoutPanel20.TabIndex = 17; - // - // label21 - // - this.label21.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label21.AutoSize = true; - this.label21.Location = new System.Drawing.Point(24, 0); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(457, 26); - this.label21.TabIndex = 0; - this.label21.Text = "Fragment (split) the packets by sending them in smaller packets, without shrinki" + - "ng the Window Size. Works faster (does not slow down the connection) and better"; - // - // checkBox7 - // - this.checkBox7.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox7.AutoSize = true; - this.checkBox7.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "NFrag", true)); - this.checkBox7.Location = new System.Drawing.Point(3, 6); - this.checkBox7.Name = "checkBox7"; - this.checkBox7.Size = new System.Drawing.Size(15, 14); - this.checkBox7.TabIndex = 1; - this.checkBox7.UseVisualStyleBackColor = true; - // - // tableLayoutPanel21 - // - this.tableLayoutPanel21.AutoSize = true; - this.tableLayoutPanel21.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel21.ColumnCount = 2; - this.tableLayoutPanel21.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel21.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel21.Controls.Add(this.label22, 1, 0); - this.tableLayoutPanel21.Controls.Add(this.checkBox22, 0, 0); - this.tableLayoutPanel21.Location = new System.Drawing.Point(1, 473); - this.tableLayoutPanel21.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel21.Name = "tableLayoutPanel21"; - this.tableLayoutPanel21.RowCount = 1; - this.tableLayoutPanel21.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel21.Size = new System.Drawing.Size(491, 39); - this.tableLayoutPanel21.TabIndex = 18; - // - // label22 - // - this.label22.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label22.AutoSize = true; - this.label22.Location = new System.Drawing.Point(24, 0); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(449, 39); - this.label22.TabIndex = 0; - this.label22.Text = resources.GetString("label22.Text"); - // - // checkBox22 - // - this.checkBox22.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox22.AutoSize = true; - this.checkBox22.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "RFrag", true)); - this.checkBox22.Location = new System.Drawing.Point(3, 12); - this.checkBox22.Name = "checkBox22"; - this.checkBox22.Size = new System.Drawing.Size(15, 14); - this.checkBox22.TabIndex = 1; - this.checkBox22.UseVisualStyleBackColor = true; - // - // tableLayoutPanel22 - // - this.tableLayoutPanel22.AutoSize = true; - this.tableLayoutPanel22.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel22.ColumnCount = 3; - this.tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel22.Controls.Add(this.checkBox23, 0, 0); - this.tableLayoutPanel22.Controls.Add(this.numericUpDown6, 1, 0); - this.tableLayoutPanel22.Controls.Add(this.label23, 2, 0); - this.tableLayoutPanel22.Location = new System.Drawing.Point(1, 514); - this.tableLayoutPanel22.Margin = new System.Windows.Forms.Padding(1); - this.tableLayoutPanel22.Name = "tableLayoutPanel22"; - this.tableLayoutPanel22.RowCount = 1; - this.tableLayoutPanel22.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel22.Size = new System.Drawing.Size(454, 26); - this.tableLayoutPanel22.TabIndex = 19; - // - // checkBox23 - // - this.checkBox23.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.checkBox23.AutoSize = true; - this.checkBox23.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.BS_GDPISettings, "MP", true)); - this.checkBox23.Location = new System.Drawing.Point(3, 6); - this.checkBox23.Name = "checkBox23"; - this.checkBox23.Size = new System.Drawing.Size(15, 14); - this.checkBox23.TabIndex = 0; - this.checkBox23.UseVisualStyleBackColor = true; - // - // numericUpDown6 - // - this.numericUpDown6.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.numericUpDown6.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.BS_GDPISettings, "MP_V", true)); - this.numericUpDown6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.numericUpDown6.Location = new System.Drawing.Point(24, 3); - this.numericUpDown6.Maximum = new decimal(new int[] { - 10000, - 0, - 0, - 0}); - this.numericUpDown6.Name = "numericUpDown6"; - this.numericUpDown6.Size = new System.Drawing.Size(63, 20); - this.numericUpDown6.TabIndex = 1; - // - // label23 - // - this.label23.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.label23.AutoSize = true; - this.label23.Location = new System.Drawing.Point(93, 6); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(358, 13); - this.label23.TabIndex = 2; - this.label23.Text = "Packets with TCP payload data more than [value] won\'t be processed"; - // - // TC_Main - // - this.TC_Main.Controls.Add(this.TP_Modeset); - this.TC_Main.Controls.Add(this.TP_Custom); - this.TC_Main.Dock = System.Windows.Forms.DockStyle.Fill; - this.TC_Main.Location = new System.Drawing.Point(0, 53); - this.TC_Main.Name = "TC_Main"; - this.TC_Main.SelectedIndex = 0; - this.TC_Main.Size = new System.Drawing.Size(534, 477); - this.TC_Main.TabIndex = 8; - // - // TP_Modeset - // - this.TP_Modeset.Controls.Add(this.flowLayoutPanel2); - this.TP_Modeset.Location = new System.Drawing.Point(4, 22); - this.TP_Modeset.Name = "TP_Modeset"; - this.TP_Modeset.Padding = new System.Windows.Forms.Padding(3); - this.TP_Modeset.Size = new System.Drawing.Size(526, 451); - this.TP_Modeset.TabIndex = 0; - this.TP_Modeset.Text = "Modesets"; - this.TP_Modeset.UseVisualStyleBackColor = true; - // - // TP_Custom - // - this.TP_Custom.Controls.Add(this.flowLayoutPanel4); - this.TP_Custom.Location = new System.Drawing.Point(4, 22); - this.TP_Custom.Name = "TP_Custom"; - this.TP_Custom.Padding = new System.Windows.Forms.Padding(3); - this.TP_Custom.Size = new System.Drawing.Size(526, 451); - this.TP_Custom.TabIndex = 1; - this.TP_Custom.Text = "User settings"; - this.TP_Custom.UseVisualStyleBackColor = true; + tableLayoutPanel2.AutoSize = true; + tableLayoutPanel2.ColumnCount = 2; + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel2.Controls.Add(groupBox2, 0, 0); + tableLayoutPanel2.Controls.Add(groupBox1, 0, 1); + tableLayoutPanel2.Controls.Add(groupBox3, 1, 0); + tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Top; + tableLayoutPanel2.Location = new System.Drawing.Point(0, 53); + tableLayoutPanel2.Name = "tableLayoutPanel2"; + tableLayoutPanel2.RowCount = 2; + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel2.Size = new System.Drawing.Size(534, 175); + tableLayoutPanel2.TabIndex = 7; // // FormMain // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(250)))), ((int)(((byte)(250))))); - this.ClientSize = new System.Drawing.Size(534, 561); - this.Controls.Add(this.TC_Main); - this.Controls.Add(this.flowLayoutPanel1); - this.Controls.Add(this.tableLayoutPanel1); - this.Controls.Add(this.FormMenu); - this.DoubleBuffered = true; - this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MainMenuStrip = this.FormMenu; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(550, 600); - this.Name = "FormMain"; - this.Text = "GDPIControl"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormMain_FormClosing); - this.ResizeBegin += new System.EventHandler(this.FormMain_ResizeBegin); - this.ResizeEnd += new System.EventHandler(this.FormMain_ResizeEnd); - this.TrayMenu.ResumeLayout(false); - this.FormMenu.ResumeLayout(false); - this.FormMenu.PerformLayout(); - this.tableLayoutPanel1.ResumeLayout(false); - this.tableLayoutPanel1.PerformLayout(); - this.flowLayoutPanel1.ResumeLayout(false); - this.flowLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.BS_ControlSettings)).EndInit(); - this.flowLayoutPanel2.ResumeLayout(false); - this.flowLayoutPanel2.PerformLayout(); - this.flowLayoutPanel4.ResumeLayout(false); - this.flowLayoutPanel4.PerformLayout(); - this.tableLayoutPanel16.ResumeLayout(false); - this.tableLayoutPanel16.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.BS_GDPISettings)).EndInit(); - this.tableLayoutPanel14.ResumeLayout(false); - this.tableLayoutPanel14.PerformLayout(); - this.tableLayoutPanel15.ResumeLayout(false); - this.tableLayoutPanel15.PerformLayout(); - this.tableLayoutPanel10.ResumeLayout(false); - this.tableLayoutPanel10.PerformLayout(); - this.tableLayoutPanel4.ResumeLayout(false); - this.tableLayoutPanel4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); - this.tableLayoutPanel6.ResumeLayout(false); - this.tableLayoutPanel6.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit(); - this.tableLayoutPanel3.ResumeLayout(false); - this.tableLayoutPanel3.PerformLayout(); - this.tableLayoutPanel5.ResumeLayout(false); - this.tableLayoutPanel5.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit(); - this.tableLayoutPanel2.ResumeLayout(false); - this.tableLayoutPanel2.PerformLayout(); - this.tableLayoutPanel11.ResumeLayout(false); - this.tableLayoutPanel11.PerformLayout(); - this.tableLayoutPanel7.ResumeLayout(false); - this.tableLayoutPanel7.PerformLayout(); - this.tableLayoutPanel8.ResumeLayout(false); - this.tableLayoutPanel8.PerformLayout(); - this.tableLayoutPanel19.ResumeLayout(false); - this.tableLayoutPanel19.PerformLayout(); - this.tableLayoutPanel9.ResumeLayout(false); - this.tableLayoutPanel9.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit(); - this.tableLayoutPanel18.ResumeLayout(false); - this.tableLayoutPanel18.PerformLayout(); - this.tableLayoutPanel17.ResumeLayout(false); - this.tableLayoutPanel17.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); - this.tableLayoutPanel12.ResumeLayout(false); - this.tableLayoutPanel12.PerformLayout(); - this.tableLayoutPanel13.ResumeLayout(false); - this.tableLayoutPanel13.PerformLayout(); - this.tableLayoutPanel20.ResumeLayout(false); - this.tableLayoutPanel20.PerformLayout(); - this.tableLayoutPanel21.ResumeLayout(false); - this.tableLayoutPanel21.PerformLayout(); - this.tableLayoutPanel22.ResumeLayout(false); - this.tableLayoutPanel22.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).EndInit(); - this.TC_Main.ResumeLayout(false); - this.TP_Modeset.ResumeLayout(false); - this.TP_Modeset.PerformLayout(); - this.TP_Custom.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + BackColor = System.Drawing.Color.FromArgb(250, 250, 250); + ClientSize = new System.Drawing.Size(534, 261); + Controls.Add(tableLayoutPanel2); + Controls.Add(flowLayoutPanel1); + Controls.Add(tableLayoutPanel1); + Controls.Add(FormMenu); + DoubleBuffered = true; + Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); + MainMenuStrip = FormMenu; + MaximizeBox = false; + MinimizeBox = false; + MinimumSize = new System.Drawing.Size(550, 300); + Name = "FormMain"; + Text = "GDPIControl"; + FormClosing += FormMain_FormClosing; + TrayMenu.ResumeLayout(false); + FormMenu.ResumeLayout(false); + FormMenu.PerformLayout(); + tableLayoutPanel1.ResumeLayout(false); + tableLayoutPanel1.PerformLayout(); + flowLayoutPanel1.ResumeLayout(false); + flowLayoutPanel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)BS_ControlSettings).EndInit(); + groupBox1.ResumeLayout(false); + groupBox1.PerformLayout(); + flowLayoutPanel3.ResumeLayout(false); + flowLayoutPanel3.PerformLayout(); + groupBox2.ResumeLayout(false); + groupBox2.PerformLayout(); + flowLayoutPanel4.ResumeLayout(false); + flowLayoutPanel4.PerformLayout(); + groupBox3.ResumeLayout(false); + groupBox3.PerformLayout(); + flowLayoutPanel5.ResumeLayout(false); + flowLayoutPanel5.PerformLayout(); + tableLayoutPanel2.ResumeLayout(false); + tableLayoutPanel2.PerformLayout(); + ResumeLayout(false); + PerformLayout(); } #endregion @@ -1690,50 +621,14 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem MI_Blacklist; private System.Windows.Forms.ToolStripMenuItem MI_About; private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; private System.Windows.Forms.RadioButton RB_M1; private System.Windows.Forms.RadioButton RB_M2; private System.Windows.Forms.RadioButton RB_M3; private System.Windows.Forms.RadioButton RB_M4; private System.Windows.Forms.RadioButton RB_M5; - private System.Windows.Forms.RadioButton RB_Custom; + private System.Windows.Forms.RadioButton RB_Custom_1; private System.Windows.Forms.CheckBox checkBox3; private System.Windows.Forms.CheckBox checkBox2; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4; - private System.Windows.Forms.TabControl TC_Main; - private System.Windows.Forms.TabPage TP_Modeset; - private System.Windows.Forms.TabPage TP_Custom; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button B_Copy; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; - private System.Windows.Forms.CheckBox checkBox9; - private System.Windows.Forms.NumericUpDown numericUpDown2; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6; - private System.Windows.Forms.CheckBox checkBox11; - private System.Windows.Forms.NumericUpDown numericUpDown4; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5; - private System.Windows.Forms.CheckBox checkBox10; - private System.Windows.Forms.NumericUpDown numericUpDown3; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.CheckBox checkBox16; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel7; - private System.Windows.Forms.CheckBox checkBox12; - private System.Windows.Forms.TextBox textBox3; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.TextBox textBox4; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel8; - private System.Windows.Forms.CheckBox checkBox13; - private System.Windows.Forms.TextBox textBox5; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.TextBox textBox6; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel9; - private System.Windows.Forms.CheckBox checkBox14; - private System.Windows.Forms.NumericUpDown numericUpDown5; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.BindingSource BS_GDPISettings; private System.Windows.Forms.BindingSource BS_ControlSettings; private System.Windows.Forms.ToolStripMenuItem MI_Start; private System.Windows.Forms.ToolStripMenuItem MI_Stop; @@ -1742,51 +637,16 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem MI_Minimized; private System.Windows.Forms.ToolStripMenuItem MI_Autostart; private System.Windows.Forms.RadioButton RB_M6; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.CheckBox checkBox8; + private System.Windows.Forms.RadioButton RB_Custom_2; + private System.Windows.Forms.Button B_Edit; + private System.Windows.Forms.RadioButton RB_Custom_3; + private System.Windows.Forms.Button B_Restart; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel5; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel11; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.CheckBox checkBox19; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel12; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.CheckBox checkBox20; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel10; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.CheckBox checkBox18; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel16; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.CheckBox checkBox21; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel14; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.CheckBox checkBox15; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel15; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.CheckBox checkBox17; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel19; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.CheckBox checkBox5; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel18; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.CheckBox checkBox4; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel17; - private System.Windows.Forms.CheckBox checkBox1; - private System.Windows.Forms.NumericUpDown numericUpDown1; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.CheckBox checkBox6; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel20; - private System.Windows.Forms.Label label21; - private System.Windows.Forms.CheckBox checkBox7; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel21; - private System.Windows.Forms.Label label22; - private System.Windows.Forms.CheckBox checkBox22; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel22; - private System.Windows.Forms.CheckBox checkBox23; - private System.Windows.Forms.NumericUpDown numericUpDown6; - private System.Windows.Forms.Label label23; } } \ No newline at end of file diff --git a/GDPIControl/FormMain.cs b/GDPIControl/FormMain.cs index 97ae450..25fe029 100644 --- a/GDPIControl/FormMain.cs +++ b/GDPIControl/FormMain.cs @@ -1,24 +1,30 @@ -using GDPIControl.Model; +using GDPIControl.Forms; +using GDPIControl.Model; using GDPIControl.Properties; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; -using System.Text.RegularExpressions; +using System.Threading.Tasks; using System.Windows.Forms; namespace GDPIControl { public partial class FormMain : Form { - private readonly Regex IP_R = new(@"^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$"); + private readonly HashSet CustomModesets; private readonly List<(RadioButton Button, Modeset Modeset)> RBModesets; private readonly ControlSettings Settings = Config.Current; public FormMain() { InitializeComponent(); + CustomModesets = new() { + Modeset.Custom1, + Modeset.Custom2, + Modeset.Custom3 + }; RBModesets = new List<(RadioButton Button, Modeset Modeset)> { (RB_M1,Modeset.M1), @@ -27,7 +33,9 @@ public FormMain() (RB_M4,Modeset.M4), (RB_M5,Modeset.M5), (RB_M6,Modeset.M6), - (RB_Custom,Modeset.Custom) + (RB_Custom_1,Modeset.Custom1), + (RB_Custom_2,Modeset.Custom2), + (RB_Custom_3,Modeset.Custom3) }; RBModesets.First(X => X.Modeset == Settings.Modeset).Button.Checked = true; MI_Autostart.Checked = Settings.AutostartGDPI; @@ -35,9 +43,9 @@ public FormMain() MI_Logon.Checked = ControlTask.IsRegistered; BS_ControlSettings.DataSource = Settings; - BS_GDPISettings.DataSource = Settings.GDPISettings; - SetArguments(); + RefreshUI(); + RefreshArguments(); if (Settings.AutostartGDPI) { StartGDPI(); } else { StopGDPI(); } } @@ -47,27 +55,30 @@ private void CloseGDPIControl() TrayControl.Icon = null; TrayControl.Visible = false; TrayControl.Dispose(); - SetArguments(); + RefreshArguments(); Application.Exit(); } - private void SetArguments() + private void RefreshArguments() { - string Arguments; Settings.Modeset = RBModesets.First(X => X.Button.Checked).Modeset; - if (Settings.Modeset == Modeset.Custom) - { - Arguments = Settings.GDPISettings.ToArguments(); - } - else + var Arguments = Settings.Modeset switch { - Arguments = GDPISettings.ModesetArgument(Settings.Modeset); - } + Modeset.Custom1 => Settings.CustomSettings1.ToArguments(), + Modeset.Custom2 => Settings.CustomSettings2.ToArguments(), + Modeset.Custom3 => Settings.CustomSettings3.ToArguments(), + _ => GDPISettings.ModesetArgument(Settings.Modeset) + }; + if (Settings.UseBlacklist) { Arguments += $@" --blacklist ""{Constants.BlacklistPath}"""; } if (Settings.UseUserlist) { Arguments += $@" --blacklist ""{Constants.UserlistPath}"""; } Settings.Arguments = Arguments; + } - B_Copy.Enabled = Settings.Modeset != Modeset.Custom; + private void RefreshUI() + { + B_Edit.Enabled = CustomModesets.Contains(Settings.Modeset); + B_Restart.Enabled = GDPIProcess.IsRunning; } private void ShowGDPIControl() @@ -84,7 +95,7 @@ private void StartGDPI() MI_Stop.Enabled = true; TrayControl.Icon = Resources.icon_green; Icon = Resources.icon_green; - SetArguments(); + RefreshArguments(); GDPIProcess.Start(); } @@ -96,25 +107,44 @@ private void StopGDPI() MI_Stop.Enabled = false; TrayControl.Icon = Resources.icon_red; Icon = Resources.icon_red; - SetArguments(); + RefreshArguments(); GDPIProcess.Stop(); } + private void UIState(bool state) + { + B_Restart.Enabled = state; + B_Start.Enabled = state; + B_Close.Enabled = state; + } + #region UIEvents private void B_Close_Click(object sender, EventArgs e) => CloseGDPIControl(); - private void B_Copy_Click(object sender, EventArgs e) + private void B_Edit_Click(object sender, EventArgs e) + { + using var form = new FormGDPISettings(Settings); + if (form.ShowDialog(this) == DialogResult.OK) + { + RefreshArguments(); + } + } + + private async void B_Restart_Click(object sender, EventArgs e) { - Settings.GDPISettings = GDPISettings.ModesetSettings(Settings.Modeset); - RB_Custom.Checked = true; - TC_Main.SelectedTab = TP_Custom; - BS_GDPISettings.DataSource = Settings.GDPISettings; + UIState(false); + StopGDPI(); + await Task.Delay(500); + StartGDPI(); + UIState(true); } private void B_Start_Click(object sender, EventArgs e) { + UIState(false); if (GDPIProcess.IsRunning) { StopGDPI(); } else { StartGDPI(); } + UIState(true); } private void FormMain_FormClosing(object sender, FormClosingEventArgs e) @@ -124,23 +154,24 @@ private void FormMain_FormClosing(object sender, FormClosingEventArgs e) Visible = false; } - private void FormMain_ResizeBegin(object sender, EventArgs e) - { - TP_Custom.SuspendLayout(); - } - - private void FormMain_ResizeEnd(object sender, EventArgs e) - { - TP_Custom.ResumeLayout(); - } - private void MI_About_Click(object sender, EventArgs e) { var F = new FormAbout(); F.ShowDialog(this); } - private void RB_CheckedChanged(object sender, EventArgs e) => SetArguments(); + private void RB_CheckedChanged(object sender, EventArgs e) + { + var RB = (RadioButton)sender; + if (!RB.Checked) { return; } + foreach (var entry in RBModesets) + { + if (entry.Button == RB) { continue; } + entry.Button.Checked = false; + } + RefreshArguments(); + RefreshUI(); + } #region Lists @@ -152,7 +183,10 @@ private void MI_Blacklist_Click(object sender, EventArgs e) private void MI_Userlist_Click(object sender, EventArgs e) { - if (!File.Exists(Constants.UserlistPath)) { File.WriteAllText(Constants.UserlistPath, ""); } + if (!File.Exists(Constants.UserlistPath)) + { + File.WriteAllText(Constants.UserlistPath, ""); + } Process.Start(new ProcessStartInfo(Constants.UserlistPath) { UseShellExecute = true }); } @@ -185,49 +219,6 @@ private void MI_Minimized_CheckedChanged(object sender, EventArgs e) #endregion Control settings - #region Validating - /* - Private Sub DNS_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS_IP.Validating - If DNS_IP.Text = "" Then Exit Sub - Try - Dim M = IP_R.Match(DNS_IP.Text) - e.Cancel = Not M.Success - Catch ex As Exception - e.Cancel = True - End Try - End Sub - - Private Sub DNS_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS_Port.Validating - Try - Dim p = CInt(DNS_Port.Text) - e.Cancel = p <= 0 Or p > 65535 - Catch ex As Exception - e.Cancel = True - End Try - End Sub - - Private Sub DNS6_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_IP.Validating - If DNS6_IP.Text = "" Then Exit Sub - Try - Dim IP As IPAddress = Nothing - Dim r = IPAddress.TryParse(DNS6_IP.Text, IP) - Dim T = IP.AddressFamily - Catch ex As Exception - e.Cancel = True - End Try - End Sub - - Private Sub DNS6_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_Port.Validating - Try - Dim p = CInt(DNS6_Port.Text) - e.Cancel = p <= 0 Or p > 65535 - Catch ex As Exception - e.Cancel = True - End Try - End Sub - */ - #endregion Validating - #region Tray private void MI_Close_Click(object sender, EventArgs e) => CloseGDPIControl(); diff --git a/GDPIControl/FormMain.resx b/GDPIControl/FormMain.resx index 3d847a5..2602afb 100644 --- a/GDPIControl/FormMain.resx +++ b/GDPIControl/FormMain.resx @@ -1,17 +1,17 @@  - @@ -328,14 +328,8 @@ 236, 17 - 484, 17 + 349, 17 - - 347, 17 - - - Fragment (split) the packets just as --native-frag, but send them in the reversed order. Works with the websites which could not handle segmented HTTPS TLS ClientHello (because they receive the TCP flow "combined") - AAABAAMAQEAAAAEAIAC/FAAANgAAADAwAAABACAA1BAAAPUUAAAgIAAAAQAgABcIAADJJQAAiVBORw0K diff --git a/GDPIControl/Forms/FormGDPISettings.Designer.cs b/GDPIControl/Forms/FormGDPISettings.Designer.cs new file mode 100644 index 0000000..42228c1 --- /dev/null +++ b/GDPIControl/Forms/FormGDPISettings.Designer.cs @@ -0,0 +1,1353 @@ +namespace GDPIControl.Forms +{ + partial class FormGDPISettings + { + /// + /// 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() + { + components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGDPISettings)); + BS_GDPISettings = new System.Windows.Forms.BindingSource(components); + flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); + tableLayoutPanel16 = new System.Windows.Forms.TableLayoutPanel(); + label17 = new System.Windows.Forms.Label(); + checkBox21 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel14 = new System.Windows.Forms.TableLayoutPanel(); + label15 = new System.Windows.Forms.Label(); + checkBox15 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel15 = new System.Windows.Forms.TableLayoutPanel(); + label16 = new System.Windows.Forms.Label(); + checkBox17 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel10 = new System.Windows.Forms.TableLayoutPanel(); + label11 = new System.Windows.Forms.Label(); + checkBox18 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); + checkBox9 = new System.Windows.Forms.CheckBox(); + numericUpDown2 = new System.Windows.Forms.NumericUpDown(); + label5 = new System.Windows.Forms.Label(); + tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); + checkBox11 = new System.Windows.Forms.CheckBox(); + numericUpDown4 = new System.Windows.Forms.NumericUpDown(); + label7 = new System.Windows.Forms.Label(); + tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); + label4 = new System.Windows.Forms.Label(); + checkBox8 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); + checkBox10 = new System.Windows.Forms.CheckBox(); + numericUpDown3 = new System.Windows.Forms.NumericUpDown(); + label6 = new System.Windows.Forms.Label(); + tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + label3 = new System.Windows.Forms.Label(); + checkBox16 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel11 = new System.Windows.Forms.TableLayoutPanel(); + label12 = new System.Windows.Forms.Label(); + checkBox19 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel(); + checkBox12 = new System.Windows.Forms.CheckBox(); + textBox3 = new System.Windows.Forms.TextBox(); + label8 = new System.Windows.Forms.Label(); + textBox4 = new System.Windows.Forms.TextBox(); + tableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel(); + checkBox13 = new System.Windows.Forms.CheckBox(); + textBox5 = new System.Windows.Forms.TextBox(); + label9 = new System.Windows.Forms.Label(); + textBox6 = new System.Windows.Forms.TextBox(); + tableLayoutPanel19 = new System.Windows.Forms.TableLayoutPanel(); + label20 = new System.Windows.Forms.Label(); + checkBox5 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel(); + checkBox14 = new System.Windows.Forms.CheckBox(); + numericUpDown5 = new System.Windows.Forms.NumericUpDown(); + label10 = new System.Windows.Forms.Label(); + tableLayoutPanel18 = new System.Windows.Forms.TableLayoutPanel(); + label19 = new System.Windows.Forms.Label(); + checkBox4 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel17 = new System.Windows.Forms.TableLayoutPanel(); + checkBox1 = new System.Windows.Forms.CheckBox(); + numericUpDown1 = new System.Windows.Forms.NumericUpDown(); + label18 = new System.Windows.Forms.Label(); + tableLayoutPanel12 = new System.Windows.Forms.TableLayoutPanel(); + label13 = new System.Windows.Forms.Label(); + checkBox20 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel13 = new System.Windows.Forms.TableLayoutPanel(); + label14 = new System.Windows.Forms.Label(); + checkBox6 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel20 = new System.Windows.Forms.TableLayoutPanel(); + label21 = new System.Windows.Forms.Label(); + checkBox7 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel21 = new System.Windows.Forms.TableLayoutPanel(); + label22 = new System.Windows.Forms.Label(); + checkBox22 = new System.Windows.Forms.CheckBox(); + tableLayoutPanel22 = new System.Windows.Forms.TableLayoutPanel(); + checkBox23 = new System.Windows.Forms.CheckBox(); + numericUpDown6 = new System.Windows.Forms.NumericUpDown(); + label23 = new System.Windows.Forms.Label(); + B_OK = new System.Windows.Forms.Button(); + B_Cancel = new System.Windows.Forms.Button(); + menuStrip1 = new System.Windows.Forms.MenuStrip(); + copyFromModesetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + modesset1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + ((System.ComponentModel.ISupportInitialize)BS_GDPISettings).BeginInit(); + flowLayoutPanel4.SuspendLayout(); + tableLayoutPanel16.SuspendLayout(); + tableLayoutPanel14.SuspendLayout(); + tableLayoutPanel15.SuspendLayout(); + tableLayoutPanel10.SuspendLayout(); + tableLayoutPanel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown2).BeginInit(); + tableLayoutPanel6.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown4).BeginInit(); + tableLayoutPanel3.SuspendLayout(); + tableLayoutPanel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown3).BeginInit(); + tableLayoutPanel2.SuspendLayout(); + tableLayoutPanel11.SuspendLayout(); + tableLayoutPanel7.SuspendLayout(); + tableLayoutPanel8.SuspendLayout(); + tableLayoutPanel19.SuspendLayout(); + tableLayoutPanel9.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown5).BeginInit(); + tableLayoutPanel18.SuspendLayout(); + tableLayoutPanel17.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown1).BeginInit(); + tableLayoutPanel12.SuspendLayout(); + tableLayoutPanel13.SuspendLayout(); + tableLayoutPanel20.SuspendLayout(); + tableLayoutPanel21.SuspendLayout(); + tableLayoutPanel22.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown6).BeginInit(); + menuStrip1.SuspendLayout(); + flowLayoutPanel1.SuspendLayout(); + tableLayoutPanel1.SuspendLayout(); + SuspendLayout(); + // + // BS_GDPISettings + // + BS_GDPISettings.DataSource = typeof(Model.GDPISettings); + // + // flowLayoutPanel4 + // + flowLayoutPanel4.AutoScroll = true; + flowLayoutPanel4.Controls.Add(tableLayoutPanel16); + flowLayoutPanel4.Controls.Add(tableLayoutPanel14); + flowLayoutPanel4.Controls.Add(tableLayoutPanel15); + flowLayoutPanel4.Controls.Add(tableLayoutPanel10); + flowLayoutPanel4.Controls.Add(tableLayoutPanel4); + flowLayoutPanel4.Controls.Add(tableLayoutPanel6); + flowLayoutPanel4.Controls.Add(tableLayoutPanel3); + flowLayoutPanel4.Controls.Add(tableLayoutPanel5); + flowLayoutPanel4.Controls.Add(tableLayoutPanel2); + flowLayoutPanel4.Controls.Add(tableLayoutPanel11); + flowLayoutPanel4.Controls.Add(tableLayoutPanel7); + flowLayoutPanel4.Controls.Add(tableLayoutPanel8); + flowLayoutPanel4.Controls.Add(tableLayoutPanel19); + flowLayoutPanel4.Controls.Add(tableLayoutPanel9); + flowLayoutPanel4.Controls.Add(tableLayoutPanel18); + flowLayoutPanel4.Controls.Add(tableLayoutPanel17); + flowLayoutPanel4.Controls.Add(tableLayoutPanel12); + flowLayoutPanel4.Controls.Add(tableLayoutPanel13); + flowLayoutPanel4.Controls.Add(tableLayoutPanel20); + flowLayoutPanel4.Controls.Add(tableLayoutPanel21); + flowLayoutPanel4.Controls.Add(tableLayoutPanel22); + flowLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel4.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + flowLayoutPanel4.Location = new System.Drawing.Point(0, 24); + flowLayoutPanel4.Name = "flowLayoutPanel4"; + flowLayoutPanel4.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0); + flowLayoutPanel4.Size = new System.Drawing.Size(565, 596); + flowLayoutPanel4.TabIndex = 8; + flowLayoutPanel4.WrapContents = false; + // + // tableLayoutPanel16 + // + tableLayoutPanel16.AutoSize = true; + tableLayoutPanel16.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel16.ColumnCount = 2; + tableLayoutPanel16.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel16.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel16.Controls.Add(label17, 1, 0); + tableLayoutPanel16.Controls.Add(checkBox21, 0, 0); + tableLayoutPanel16.Location = new System.Drawing.Point(1, 1); + tableLayoutPanel16.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel16.Name = "tableLayoutPanel16"; + tableLayoutPanel16.RowCount = 1; + tableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel16.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel16.Size = new System.Drawing.Size(140, 20); + tableLayoutPanel16.TabIndex = 14; + // + // label17 + // + label17.Anchor = System.Windows.Forms.AnchorStyles.Left; + label17.AutoSize = true; + label17.Location = new System.Drawing.Point(24, 2); + label17.Name = "label17"; + label17.Size = new System.Drawing.Size(113, 15); + label17.TabIndex = 0; + label17.Text = "-p Block passive DPI"; + // + // checkBox21 + // + checkBox21.AutoSize = true; + checkBox21.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "P", true)); + checkBox21.Location = new System.Drawing.Point(3, 3); + checkBox21.Name = "checkBox21"; + checkBox21.Size = new System.Drawing.Size(15, 14); + checkBox21.TabIndex = 1; + checkBox21.UseVisualStyleBackColor = true; + // + // tableLayoutPanel14 + // + tableLayoutPanel14.AutoSize = true; + tableLayoutPanel14.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel14.ColumnCount = 2; + tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel14.Controls.Add(label15, 1, 0); + tableLayoutPanel14.Controls.Add(checkBox15, 0, 0); + tableLayoutPanel14.Location = new System.Drawing.Point(1, 23); + tableLayoutPanel14.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel14.Name = "tableLayoutPanel14"; + tableLayoutPanel14.RowCount = 1; + tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel14.Size = new System.Drawing.Size(168, 20); + tableLayoutPanel14.TabIndex = 12; + // + // label15 + // + label15.Anchor = System.Windows.Forms.AnchorStyles.Left; + label15.AutoSize = true; + label15.Location = new System.Drawing.Point(24, 2); + label15.Name = "label15"; + label15.Size = new System.Drawing.Size(141, 15); + label15.TabIndex = 0; + label15.Text = "-r Replace Host with hoSt"; + // + // checkBox15 + // + checkBox15.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox15.AutoSize = true; + checkBox15.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "R", true)); + checkBox15.Location = new System.Drawing.Point(3, 3); + checkBox15.Name = "checkBox15"; + checkBox15.Size = new System.Drawing.Size(15, 14); + checkBox15.TabIndex = 1; + checkBox15.UseVisualStyleBackColor = true; + // + // tableLayoutPanel15 + // + tableLayoutPanel15.AutoSize = true; + tableLayoutPanel15.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel15.ColumnCount = 2; + tableLayoutPanel15.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel15.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel15.Controls.Add(label16, 1, 0); + tableLayoutPanel15.Controls.Add(checkBox17, 0, 0); + tableLayoutPanel15.Location = new System.Drawing.Point(1, 45); + tableLayoutPanel15.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel15.Name = "tableLayoutPanel15"; + tableLayoutPanel15.RowCount = 1; + tableLayoutPanel15.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel15.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel15.Size = new System.Drawing.Size(307, 20); + tableLayoutPanel15.TabIndex = 13; + // + // label16 + // + label16.Anchor = System.Windows.Forms.AnchorStyles.Left; + label16.AutoSize = true; + label16.Location = new System.Drawing.Point(24, 2); + label16.Name = "label16"; + label16.Size = new System.Drawing.Size(280, 15); + label16.TabIndex = 0; + label16.Text = "-s Remove space between host header And its value"; + // + // checkBox17 + // + checkBox17.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox17.AutoSize = true; + checkBox17.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "S", true)); + checkBox17.Location = new System.Drawing.Point(3, 3); + checkBox17.Name = "checkBox17"; + checkBox17.Size = new System.Drawing.Size(15, 14); + checkBox17.TabIndex = 1; + checkBox17.UseVisualStyleBackColor = true; + // + // tableLayoutPanel10 + // + tableLayoutPanel10.AutoSize = true; + tableLayoutPanel10.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel10.ColumnCount = 2; + tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel10.Controls.Add(label11, 1, 0); + tableLayoutPanel10.Controls.Add(checkBox18, 0, 0); + tableLayoutPanel10.Location = new System.Drawing.Point(1, 67); + tableLayoutPanel10.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel10.Name = "tableLayoutPanel10"; + tableLayoutPanel10.RowCount = 1; + tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel10.Size = new System.Drawing.Size(292, 20); + tableLayoutPanel10.TabIndex = 10; + // + // label11 + // + label11.Anchor = System.Windows.Forms.AnchorStyles.Left; + label11.AutoSize = true; + label11.Location = new System.Drawing.Point(24, 2); + label11.Name = "label11"; + label11.Size = new System.Drawing.Size(265, 15); + label11.TabIndex = 0; + label11.Text = "-m Mix Host header case (test.com -> tEsT.cOm)"; + // + // checkBox18 + // + checkBox18.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox18.AutoSize = true; + checkBox18.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "M", true)); + checkBox18.Location = new System.Drawing.Point(3, 3); + checkBox18.Name = "checkBox18"; + checkBox18.Size = new System.Drawing.Size(15, 14); + checkBox18.TabIndex = 1; + checkBox18.UseVisualStyleBackColor = true; + // + // tableLayoutPanel4 + // + tableLayoutPanel4.AutoSize = true; + tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel4.ColumnCount = 3; + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel4.Controls.Add(checkBox9, 0, 0); + tableLayoutPanel4.Controls.Add(numericUpDown2, 1, 0); + tableLayoutPanel4.Controls.Add(label5, 2, 0); + tableLayoutPanel4.Location = new System.Drawing.Point(1, 89); + tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel4.Name = "tableLayoutPanel4"; + tableLayoutPanel4.RowCount = 1; + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel4.Size = new System.Drawing.Size(266, 26); + tableLayoutPanel4.TabIndex = 8; + // + // checkBox9 + // + checkBox9.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox9.AutoSize = true; + checkBox9.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", BS_GDPISettings, "F", true)); + checkBox9.Location = new System.Drawing.Point(3, 6); + checkBox9.Name = "checkBox9"; + checkBox9.Size = new System.Drawing.Size(15, 14); + checkBox9.TabIndex = 0; + checkBox9.UseVisualStyleBackColor = true; + // + // numericUpDown2 + // + numericUpDown2.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown2.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "F_V", true)); + numericUpDown2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown2.Location = new System.Drawing.Point(24, 3); + numericUpDown2.Name = "numericUpDown2"; + numericUpDown2.Size = new System.Drawing.Size(43, 20); + numericUpDown2.TabIndex = 1; + // + // label5 + // + label5.Anchor = System.Windows.Forms.AnchorStyles.Left; + label5.AutoSize = true; + label5.Location = new System.Drawing.Point(73, 5); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(190, 15); + label5.TabIndex = 2; + label5.Text = "-f Set HTTP fragmentation to value"; + // + // tableLayoutPanel6 + // + tableLayoutPanel6.AutoSize = true; + tableLayoutPanel6.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel6.ColumnCount = 3; + tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel6.Controls.Add(checkBox11, 0, 0); + tableLayoutPanel6.Controls.Add(numericUpDown4, 1, 0); + tableLayoutPanel6.Controls.Add(label7, 2, 0); + tableLayoutPanel6.Location = new System.Drawing.Point(1, 117); + tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel6.Name = "tableLayoutPanel6"; + tableLayoutPanel6.RowCount = 1; + tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel6.Size = new System.Drawing.Size(457, 26); + tableLayoutPanel6.TabIndex = 8; + // + // checkBox11 + // + checkBox11.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox11.AutoSize = true; + checkBox11.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", BS_GDPISettings, "K", true)); + checkBox11.Location = new System.Drawing.Point(3, 6); + checkBox11.Name = "checkBox11"; + checkBox11.Size = new System.Drawing.Size(15, 14); + checkBox11.TabIndex = 0; + checkBox11.UseVisualStyleBackColor = true; + // + // numericUpDown4 + // + numericUpDown4.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown4.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "K_V", true)); + numericUpDown4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown4.Location = new System.Drawing.Point(24, 3); + numericUpDown4.Name = "numericUpDown4"; + numericUpDown4.Size = new System.Drawing.Size(43, 20); + numericUpDown4.TabIndex = 1; + // + // label7 + // + label7.Anchor = System.Windows.Forms.AnchorStyles.Left; + label7.AutoSize = true; + label7.Location = new System.Drawing.Point(73, 5); + label7.Name = "label7"; + label7.Size = new System.Drawing.Size(381, 15); + label7.TabIndex = 2; + label7.Text = "-k Enable HTTP persistent (keep-alive) fragmentation and set it to value"; + // + // tableLayoutPanel3 + // + tableLayoutPanel3.AutoSize = true; + tableLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel3.ColumnCount = 2; + tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel3.Controls.Add(label4, 1, 0); + tableLayoutPanel3.Controls.Add(checkBox8, 0, 0); + tableLayoutPanel3.Location = new System.Drawing.Point(1, 145); + tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel3.Name = "tableLayoutPanel3"; + tableLayoutPanel3.RowCount = 1; + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel3.Size = new System.Drawing.Size(328, 20); + tableLayoutPanel3.TabIndex = 9; + // + // label4 + // + label4.Anchor = System.Windows.Forms.AnchorStyles.Left; + label4.AutoSize = true; + label4.Location = new System.Drawing.Point(24, 2); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(301, 15); + label4.TabIndex = 0; + label4.Text = "-n Do not wait for first segment ACK when -k is enabled"; + // + // checkBox8 + // + checkBox8.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox8.AutoSize = true; + checkBox8.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "N", true)); + checkBox8.Location = new System.Drawing.Point(3, 3); + checkBox8.Name = "checkBox8"; + checkBox8.Size = new System.Drawing.Size(15, 14); + checkBox8.TabIndex = 1; + checkBox8.UseVisualStyleBackColor = true; + // + // tableLayoutPanel5 + // + tableLayoutPanel5.AutoSize = true; + tableLayoutPanel5.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel5.ColumnCount = 3; + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel5.Controls.Add(checkBox10, 0, 0); + tableLayoutPanel5.Controls.Add(numericUpDown3, 1, 0); + tableLayoutPanel5.Controls.Add(label6, 2, 0); + tableLayoutPanel5.Location = new System.Drawing.Point(1, 167); + tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel5.Name = "tableLayoutPanel5"; + tableLayoutPanel5.RowCount = 1; + tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel5.Size = new System.Drawing.Size(274, 26); + tableLayoutPanel5.TabIndex = 8; + // + // checkBox10 + // + checkBox10.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox10.AutoSize = true; + checkBox10.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "E", true)); + checkBox10.Location = new System.Drawing.Point(3, 6); + checkBox10.Name = "checkBox10"; + checkBox10.Size = new System.Drawing.Size(15, 14); + checkBox10.TabIndex = 0; + checkBox10.UseVisualStyleBackColor = true; + // + // numericUpDown3 + // + numericUpDown3.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown3.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "E_V", true)); + numericUpDown3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown3.Location = new System.Drawing.Point(24, 3); + numericUpDown3.Name = "numericUpDown3"; + numericUpDown3.Size = new System.Drawing.Size(43, 20); + numericUpDown3.TabIndex = 1; + // + // label6 + // + label6.Anchor = System.Windows.Forms.AnchorStyles.Left; + label6.AutoSize = true; + label6.Location = new System.Drawing.Point(73, 5); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(198, 15); + label6.TabIndex = 2; + label6.Text = "-e Set HTTPS fragmentation to value"; + // + // tableLayoutPanel2 + // + tableLayoutPanel2.AutoSize = true; + tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel2.ColumnCount = 2; + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel2.Controls.Add(label3, 1, 0); + tableLayoutPanel2.Controls.Add(checkBox16, 0, 0); + tableLayoutPanel2.Location = new System.Drawing.Point(1, 195); + tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel2.Name = "tableLayoutPanel2"; + tableLayoutPanel2.RowCount = 1; + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel2.Size = new System.Drawing.Size(473, 20); + tableLayoutPanel2.TabIndex = 8; + // + // label3 + // + label3.Anchor = System.Windows.Forms.AnchorStyles.Left; + label3.AutoSize = true; + label3.Location = new System.Drawing.Point(24, 2); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(446, 15); + label3.TabIndex = 0; + label3.Text = "-a Additional space between Method And Request-URI (enables -s, may break sites)"; + // + // checkBox16 + // + checkBox16.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox16.AutoSize = true; + checkBox16.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "A", true)); + checkBox16.Location = new System.Drawing.Point(3, 3); + checkBox16.Name = "checkBox16"; + checkBox16.Size = new System.Drawing.Size(15, 14); + checkBox16.TabIndex = 6; + checkBox16.UseVisualStyleBackColor = true; + // + // tableLayoutPanel11 + // + tableLayoutPanel11.AutoSize = true; + tableLayoutPanel11.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel11.ColumnCount = 2; + tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel11.Controls.Add(label12, 1, 0); + tableLayoutPanel11.Controls.Add(checkBox19, 0, 0); + tableLayoutPanel11.Location = new System.Drawing.Point(1, 217); + tableLayoutPanel11.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel11.Name = "tableLayoutPanel11"; + tableLayoutPanel11.RowCount = 1; + tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel11.Size = new System.Drawing.Size(457, 20); + tableLayoutPanel11.TabIndex = 11; + // + // label12 + // + label12.Anchor = System.Windows.Forms.AnchorStyles.Left; + label12.AutoSize = true; + label12.Location = new System.Drawing.Point(24, 2); + label12.Name = "label12"; + label12.Size = new System.Drawing.Size(430, 15); + label12.TabIndex = 0; + label12.Text = "-w Try to find And parse HTTP traffic on all processed ports (Not only on port 80)"; + // + // checkBox19 + // + checkBox19.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox19.AutoSize = true; + checkBox19.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "W", true)); + checkBox19.Location = new System.Drawing.Point(3, 3); + checkBox19.Name = "checkBox19"; + checkBox19.Size = new System.Drawing.Size(15, 14); + checkBox19.TabIndex = 1; + checkBox19.UseVisualStyleBackColor = true; + // + // tableLayoutPanel7 + // + tableLayoutPanel7.AutoSize = true; + tableLayoutPanel7.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel7.ColumnCount = 4; + tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel7.Controls.Add(checkBox12, 0, 0); + tableLayoutPanel7.Controls.Add(textBox3, 1, 0); + tableLayoutPanel7.Controls.Add(label8, 3, 0); + tableLayoutPanel7.Controls.Add(textBox4, 2, 0); + tableLayoutPanel7.Location = new System.Drawing.Point(1, 239); + tableLayoutPanel7.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel7.Name = "tableLayoutPanel7"; + tableLayoutPanel7.RowCount = 1; + tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel7.Size = new System.Drawing.Size(523, 26); + tableLayoutPanel7.TabIndex = 9; + // + // checkBox12 + // + checkBox12.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox12.AutoSize = true; + checkBox12.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "DNS_State", true)); + checkBox12.Location = new System.Drawing.Point(3, 6); + checkBox12.Name = "checkBox12"; + checkBox12.Size = new System.Drawing.Size(15, 14); + checkBox12.TabIndex = 0; + checkBox12.UseVisualStyleBackColor = true; + // + // textBox3 + // + textBox3.Anchor = System.Windows.Forms.AnchorStyles.Left; + textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", BS_GDPISettings, "DNS_Addr", true)); + textBox3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + textBox3.Location = new System.Drawing.Point(24, 3); + textBox3.Name = "textBox3"; + textBox3.Size = new System.Drawing.Size(129, 20); + textBox3.TabIndex = 0; + // + // label8 + // + label8.Anchor = System.Windows.Forms.AnchorStyles.Left; + label8.AutoSize = true; + label8.Location = new System.Drawing.Point(208, 5); + label8.Name = "label8"; + label8.Size = new System.Drawing.Size(312, 15); + label8.TabIndex = 2; + label8.Text = "Redirect UDP DNS requests to the supplied IP address:port"; + // + // textBox4 + // + textBox4.Anchor = System.Windows.Forms.AnchorStyles.Left; + textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", BS_GDPISettings, "DNS_Port", true)); + textBox4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + textBox4.Location = new System.Drawing.Point(159, 3); + textBox4.Name = "textBox4"; + textBox4.Size = new System.Drawing.Size(43, 20); + textBox4.TabIndex = 0; + // + // tableLayoutPanel8 + // + tableLayoutPanel8.AutoSize = true; + tableLayoutPanel8.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel8.ColumnCount = 4; + tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel8.Controls.Add(checkBox13, 0, 0); + tableLayoutPanel8.Controls.Add(textBox5, 1, 0); + tableLayoutPanel8.Controls.Add(label9, 3, 0); + tableLayoutPanel8.Controls.Add(textBox6, 2, 0); + tableLayoutPanel8.Location = new System.Drawing.Point(1, 267); + tableLayoutPanel8.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel8.Name = "tableLayoutPanel8"; + tableLayoutPanel8.RowCount = 1; + tableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel8.Size = new System.Drawing.Size(547, 26); + tableLayoutPanel8.TabIndex = 9; + // + // checkBox13 + // + checkBox13.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox13.AutoSize = true; + checkBox13.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "DNS6_State", true)); + checkBox13.Location = new System.Drawing.Point(3, 6); + checkBox13.Name = "checkBox13"; + checkBox13.Size = new System.Drawing.Size(15, 14); + checkBox13.TabIndex = 0; + checkBox13.UseVisualStyleBackColor = true; + // + // textBox5 + // + textBox5.Anchor = System.Windows.Forms.AnchorStyles.Left; + textBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", BS_GDPISettings, "DNS6_Addr", true)); + textBox5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + textBox5.Location = new System.Drawing.Point(24, 3); + textBox5.Name = "textBox5"; + textBox5.Size = new System.Drawing.Size(129, 20); + textBox5.TabIndex = 0; + // + // label9 + // + label9.Anchor = System.Windows.Forms.AnchorStyles.Left; + label9.AutoSize = true; + label9.Location = new System.Drawing.Point(208, 5); + label9.Name = "label9"; + label9.Size = new System.Drawing.Size(336, 15); + label9.TabIndex = 2; + label9.Text = "Redirect UDPv6 DNS requests to the supplied IPv6 address:port"; + // + // textBox6 + // + textBox6.Anchor = System.Windows.Forms.AnchorStyles.Left; + textBox6.DataBindings.Add(new System.Windows.Forms.Binding("Text", BS_GDPISettings, "DNS6_Port", true)); + textBox6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + textBox6.Location = new System.Drawing.Point(159, 3); + textBox6.Name = "textBox6"; + textBox6.Size = new System.Drawing.Size(43, 20); + textBox6.TabIndex = 0; + // + // tableLayoutPanel19 + // + tableLayoutPanel19.AutoSize = true; + tableLayoutPanel19.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel19.ColumnCount = 2; + tableLayoutPanel19.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel19.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel19.Controls.Add(label20, 1, 0); + tableLayoutPanel19.Controls.Add(checkBox5, 0, 0); + tableLayoutPanel19.Location = new System.Drawing.Point(1, 295); + tableLayoutPanel19.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel19.Name = "tableLayoutPanel19"; + tableLayoutPanel19.RowCount = 1; + tableLayoutPanel19.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel19.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel19.Size = new System.Drawing.Size(430, 20); + tableLayoutPanel19.TabIndex = 12; + // + // label20 + // + label20.Anchor = System.Windows.Forms.AnchorStyles.Left; + label20.AutoSize = true; + label20.Location = new System.Drawing.Point(24, 2); + label20.Name = "label20"; + label20.Size = new System.Drawing.Size(403, 15); + label20.TabIndex = 0; + label20.Text = "Perform circumvention if TLS SNI can't be detected with --blacklist enabled"; + // + // checkBox5 + // + checkBox5.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox5.AutoSize = true; + checkBox5.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "SNI", true)); + checkBox5.Location = new System.Drawing.Point(3, 3); + checkBox5.Name = "checkBox5"; + checkBox5.Size = new System.Drawing.Size(15, 14); + checkBox5.TabIndex = 1; + checkBox5.UseVisualStyleBackColor = true; + // + // tableLayoutPanel9 + // + tableLayoutPanel9.AutoSize = true; + tableLayoutPanel9.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel9.ColumnCount = 3; + tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel9.Controls.Add(checkBox14, 0, 0); + tableLayoutPanel9.Controls.Add(numericUpDown5, 1, 0); + tableLayoutPanel9.Controls.Add(label10, 2, 0); + tableLayoutPanel9.Location = new System.Drawing.Point(1, 317); + tableLayoutPanel9.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel9.Name = "tableLayoutPanel9"; + tableLayoutPanel9.RowCount = 1; + tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel9.Size = new System.Drawing.Size(441, 26); + tableLayoutPanel9.TabIndex = 8; + // + // checkBox14 + // + checkBox14.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox14.AutoSize = true; + checkBox14.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "STTL", true)); + checkBox14.Location = new System.Drawing.Point(3, 6); + checkBox14.Name = "checkBox14"; + checkBox14.Size = new System.Drawing.Size(15, 14); + checkBox14.TabIndex = 0; + checkBox14.UseVisualStyleBackColor = true; + // + // numericUpDown5 + // + numericUpDown5.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown5.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "STTL_V", true)); + numericUpDown5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown5.Location = new System.Drawing.Point(24, 3); + numericUpDown5.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); + numericUpDown5.Name = "numericUpDown5"; + numericUpDown5.Size = new System.Drawing.Size(63, 20); + numericUpDown5.TabIndex = 1; + // + // label10 + // + label10.Anchor = System.Windows.Forms.AnchorStyles.Left; + label10.AutoSize = true; + label10.Location = new System.Drawing.Point(93, 5); + label10.Name = "label10"; + label10.Size = new System.Drawing.Size(345, 15); + label10.TabIndex = 2; + label10.Text = "Activate Fake Request Mode And send it with supplied TTL value"; + // + // tableLayoutPanel18 + // + tableLayoutPanel18.AutoSize = true; + tableLayoutPanel18.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel18.ColumnCount = 2; + tableLayoutPanel18.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel18.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel18.Controls.Add(label19, 1, 0); + tableLayoutPanel18.Controls.Add(checkBox4, 0, 0); + tableLayoutPanel18.Location = new System.Drawing.Point(1, 345); + tableLayoutPanel18.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel18.Name = "tableLayoutPanel18"; + tableLayoutPanel18.RowCount = 1; + tableLayoutPanel18.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel18.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel18.Size = new System.Drawing.Size(507, 20); + tableLayoutPanel18.TabIndex = 12; + // + // label19 + // + label19.Anchor = System.Windows.Forms.AnchorStyles.Left; + label19.AutoSize = true; + label19.Location = new System.Drawing.Point(24, 2); + label19.Name = "label19"; + label19.Size = new System.Drawing.Size(480, 15); + label19.TabIndex = 0; + label19.Text = "Activate Fake Request Mode, automatically detect TTL and decrease it based on a distance"; + // + // checkBox4 + // + checkBox4.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox4.AutoSize = true; + checkBox4.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "ATTL", true)); + checkBox4.Location = new System.Drawing.Point(3, 3); + checkBox4.Name = "checkBox4"; + checkBox4.Size = new System.Drawing.Size(15, 14); + checkBox4.TabIndex = 1; + checkBox4.UseVisualStyleBackColor = true; + // + // tableLayoutPanel17 + // + tableLayoutPanel17.AutoSize = true; + tableLayoutPanel17.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel17.ColumnCount = 3; + tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel17.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel17.Controls.Add(checkBox1, 0, 0); + tableLayoutPanel17.Controls.Add(numericUpDown1, 1, 0); + tableLayoutPanel17.Controls.Add(label18, 2, 0); + tableLayoutPanel17.Location = new System.Drawing.Point(1, 367); + tableLayoutPanel17.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel17.Name = "tableLayoutPanel17"; + tableLayoutPanel17.RowCount = 1; + tableLayoutPanel17.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel17.Size = new System.Drawing.Size(553, 30); + tableLayoutPanel17.TabIndex = 15; + // + // checkBox1 + // + checkBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox1.AutoSize = true; + checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "MTTL", true)); + checkBox1.Location = new System.Drawing.Point(3, 8); + checkBox1.Name = "checkBox1"; + checkBox1.Size = new System.Drawing.Size(15, 14); + checkBox1.TabIndex = 0; + checkBox1.UseVisualStyleBackColor = true; + // + // numericUpDown1 + // + numericUpDown1.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown1.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "MTTL_V", true)); + numericUpDown1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown1.Location = new System.Drawing.Point(24, 5); + numericUpDown1.Name = "numericUpDown1"; + numericUpDown1.Size = new System.Drawing.Size(63, 20); + numericUpDown1.TabIndex = 1; + // + // label18 + // + label18.Anchor = System.Windows.Forms.AnchorStyles.Left; + label18.AutoSize = true; + label18.Location = new System.Drawing.Point(93, 0); + label18.Name = "label18"; + label18.Size = new System.Drawing.Size(453, 30); + label18.TabIndex = 2; + label18.Text = "Minimum TTL distance (128/64 - TTL) for which to send Fake Request in --set-ttl and --auto-ttl modes"; + // + // tableLayoutPanel12 + // + tableLayoutPanel12.AutoSize = true; + tableLayoutPanel12.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel12.ColumnCount = 2; + tableLayoutPanel12.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel12.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel12.Controls.Add(label13, 1, 0); + tableLayoutPanel12.Controls.Add(checkBox20, 0, 0); + tableLayoutPanel12.Location = new System.Drawing.Point(1, 399); + tableLayoutPanel12.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel12.Name = "tableLayoutPanel12"; + tableLayoutPanel12.RowCount = 1; + tableLayoutPanel12.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel12.Size = new System.Drawing.Size(402, 20); + tableLayoutPanel12.TabIndex = 12; + // + // label13 + // + label13.Anchor = System.Windows.Forms.AnchorStyles.Left; + label13.AutoSize = true; + label13.Location = new System.Drawing.Point(24, 2); + label13.Name = "label13"; + label13.Size = new System.Drawing.Size(375, 15); + label13.TabIndex = 0; + label13.Text = "Activate Fake Request Mode And send it with incorrect TCP checksum"; + // + // checkBox20 + // + checkBox20.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox20.AutoSize = true; + checkBox20.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "ChkSum", true)); + checkBox20.Location = new System.Drawing.Point(3, 3); + checkBox20.Name = "checkBox20"; + checkBox20.Size = new System.Drawing.Size(15, 14); + checkBox20.TabIndex = 1; + checkBox20.UseVisualStyleBackColor = true; + // + // tableLayoutPanel13 + // + tableLayoutPanel13.AutoSize = true; + tableLayoutPanel13.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel13.ColumnCount = 2; + tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel13.Controls.Add(label14, 1, 0); + tableLayoutPanel13.Controls.Add(checkBox6, 0, 0); + tableLayoutPanel13.Location = new System.Drawing.Point(1, 421); + tableLayoutPanel13.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel13.Name = "tableLayoutPanel13"; + tableLayoutPanel13.RowCount = 1; + tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel13.Size = new System.Drawing.Size(403, 20); + tableLayoutPanel13.TabIndex = 16; + // + // label14 + // + label14.Anchor = System.Windows.Forms.AnchorStyles.Left; + label14.AutoSize = true; + label14.Location = new System.Drawing.Point(24, 2); + label14.Name = "label14"; + label14.Size = new System.Drawing.Size(376, 15); + label14.TabIndex = 0; + label14.Text = "Activate Fake Request Mode and send it with TCP SEQ/ACK in the past"; + // + // checkBox6 + // + checkBox6.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox6.AutoSize = true; + checkBox6.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "Seq", true)); + checkBox6.Location = new System.Drawing.Point(3, 3); + checkBox6.Name = "checkBox6"; + checkBox6.Size = new System.Drawing.Size(15, 14); + checkBox6.TabIndex = 1; + checkBox6.UseVisualStyleBackColor = true; + // + // tableLayoutPanel20 + // + tableLayoutPanel20.AutoSize = true; + tableLayoutPanel20.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel20.ColumnCount = 2; + tableLayoutPanel20.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel20.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel20.Controls.Add(label21, 1, 0); + tableLayoutPanel20.Controls.Add(checkBox7, 0, 0); + tableLayoutPanel20.Location = new System.Drawing.Point(1, 443); + tableLayoutPanel20.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel20.Name = "tableLayoutPanel20"; + tableLayoutPanel20.RowCount = 1; + tableLayoutPanel20.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel20.Size = new System.Drawing.Size(553, 30); + tableLayoutPanel20.TabIndex = 17; + // + // label21 + // + label21.Anchor = System.Windows.Forms.AnchorStyles.Left; + label21.AutoSize = true; + label21.Location = new System.Drawing.Point(24, 0); + label21.Name = "label21"; + label21.Size = new System.Drawing.Size(515, 30); + label21.TabIndex = 0; + label21.Text = "Fragment (split) the packets by sending them in smaller packets, without shrinking the Window Size. Works faster (does not slow down the connection) and better"; + // + // checkBox7 + // + checkBox7.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox7.AutoSize = true; + checkBox7.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "NFrag", true)); + checkBox7.Location = new System.Drawing.Point(3, 8); + checkBox7.Name = "checkBox7"; + checkBox7.Size = new System.Drawing.Size(15, 14); + checkBox7.TabIndex = 1; + checkBox7.UseVisualStyleBackColor = true; + // + // tableLayoutPanel21 + // + tableLayoutPanel21.AutoSize = true; + tableLayoutPanel21.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel21.ColumnCount = 2; + tableLayoutPanel21.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel21.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel21.Controls.Add(label22, 1, 0); + tableLayoutPanel21.Controls.Add(checkBox22, 0, 0); + tableLayoutPanel21.Location = new System.Drawing.Point(1, 475); + tableLayoutPanel21.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel21.Name = "tableLayoutPanel21"; + tableLayoutPanel21.RowCount = 1; + tableLayoutPanel21.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel21.Size = new System.Drawing.Size(553, 45); + tableLayoutPanel21.TabIndex = 18; + // + // label22 + // + label22.Anchor = System.Windows.Forms.AnchorStyles.Left; + label22.AutoSize = true; + label22.Location = new System.Drawing.Point(24, 0); + label22.Name = "label22"; + label22.Size = new System.Drawing.Size(523, 45); + label22.TabIndex = 0; + label22.Text = resources.GetString("label22.Text"); + // + // checkBox22 + // + checkBox22.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox22.AutoSize = true; + checkBox22.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "RFrag", true)); + checkBox22.Location = new System.Drawing.Point(3, 15); + checkBox22.Name = "checkBox22"; + checkBox22.Size = new System.Drawing.Size(15, 14); + checkBox22.TabIndex = 1; + checkBox22.UseVisualStyleBackColor = true; + // + // tableLayoutPanel22 + // + tableLayoutPanel22.AutoSize = true; + tableLayoutPanel22.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel22.ColumnCount = 3; + tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + tableLayoutPanel22.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel22.Controls.Add(checkBox23, 0, 0); + tableLayoutPanel22.Controls.Add(numericUpDown6, 1, 0); + tableLayoutPanel22.Controls.Add(label23, 2, 0); + tableLayoutPanel22.Location = new System.Drawing.Point(1, 522); + tableLayoutPanel22.Margin = new System.Windows.Forms.Padding(1); + tableLayoutPanel22.Name = "tableLayoutPanel22"; + tableLayoutPanel22.RowCount = 1; + tableLayoutPanel22.RowStyles.Add(new System.Windows.Forms.RowStyle()); + tableLayoutPanel22.Size = new System.Drawing.Size(465, 26); + tableLayoutPanel22.TabIndex = 19; + // + // checkBox23 + // + checkBox23.Anchor = System.Windows.Forms.AnchorStyles.Left; + checkBox23.AutoSize = true; + checkBox23.DataBindings.Add(new System.Windows.Forms.Binding("Checked", BS_GDPISettings, "MP", true)); + checkBox23.Location = new System.Drawing.Point(3, 6); + checkBox23.Name = "checkBox23"; + checkBox23.Size = new System.Drawing.Size(15, 14); + checkBox23.TabIndex = 0; + checkBox23.UseVisualStyleBackColor = true; + // + // numericUpDown6 + // + numericUpDown6.Anchor = System.Windows.Forms.AnchorStyles.Left; + numericUpDown6.DataBindings.Add(new System.Windows.Forms.Binding("Value", BS_GDPISettings, "MP_V", true)); + numericUpDown6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + numericUpDown6.Location = new System.Drawing.Point(24, 3); + numericUpDown6.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); + numericUpDown6.Name = "numericUpDown6"; + numericUpDown6.Size = new System.Drawing.Size(63, 20); + numericUpDown6.TabIndex = 1; + // + // label23 + // + label23.Anchor = System.Windows.Forms.AnchorStyles.Left; + label23.AutoSize = true; + label23.Location = new System.Drawing.Point(93, 5); + label23.Name = "label23"; + label23.Size = new System.Drawing.Size(369, 15); + label23.TabIndex = 2; + label23.Text = "Packets with TCP payload data more than [value] won't be processed"; + // + // B_OK + // + B_OK.AutoSize = true; + B_OK.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_OK.Image = icons8.Ok16; + B_OK.Location = new System.Drawing.Point(3, 3); + B_OK.Name = "B_OK"; + B_OK.Padding = new System.Windows.Forms.Padding(1); + B_OK.Size = new System.Drawing.Size(51, 27); + B_OK.TabIndex = 9; + B_OK.Text = "ОК"; + B_OK.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + B_OK.UseVisualStyleBackColor = true; + B_OK.Click += B_OK_Click; + // + // B_Cancel + // + B_Cancel.AutoSize = true; + B_Cancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + B_Cancel.Image = icons8.Cancel16; + B_Cancel.Location = new System.Drawing.Point(60, 3); + B_Cancel.Name = "B_Cancel"; + B_Cancel.Padding = new System.Windows.Forms.Padding(1); + B_Cancel.Size = new System.Drawing.Size(71, 27); + B_Cancel.TabIndex = 9; + B_Cancel.Text = "Cancel"; + B_Cancel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + B_Cancel.UseVisualStyleBackColor = true; + B_Cancel.Click += B_Cancel_Click; + // + // menuStrip1 + // + menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { copyFromModesetToolStripMenuItem }); + menuStrip1.Location = new System.Drawing.Point(0, 0); + menuStrip1.Name = "menuStrip1"; + menuStrip1.Size = new System.Drawing.Size(565, 24); + menuStrip1.TabIndex = 10; + menuStrip1.Text = "menuStrip1"; + // + // copyFromModesetToolStripMenuItem + // + copyFromModesetToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { modesset1ToolStripMenuItem }); + copyFromModesetToolStripMenuItem.Image = icons8.CopyToClipboard16; + copyFromModesetToolStripMenuItem.Name = "copyFromModesetToolStripMenuItem"; + copyFromModesetToolStripMenuItem.Size = new System.Drawing.Size(141, 20); + copyFromModesetToolStripMenuItem.Text = "Copy from Modeset"; + // + // modesset1ToolStripMenuItem + // + modesset1ToolStripMenuItem.Name = "modesset1ToolStripMenuItem"; + modesset1ToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + modesset1ToolStripMenuItem.Text = "Modeset 1"; + // + // flowLayoutPanel1 + // + flowLayoutPanel1.Anchor = System.Windows.Forms.AnchorStyles.Right; + flowLayoutPanel1.AutoSize = true; + flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + flowLayoutPanel1.Controls.Add(B_OK); + flowLayoutPanel1.Controls.Add(B_Cancel); + flowLayoutPanel1.Location = new System.Drawing.Point(428, 3); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Size = new System.Drawing.Size(134, 33); + flowLayoutPanel1.TabIndex = 11; + flowLayoutPanel1.WrapContents = false; + // + // tableLayoutPanel1 + // + tableLayoutPanel1.AutoSize = true; + tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel1.ColumnCount = 2; + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + tableLayoutPanel1.Controls.Add(flowLayoutPanel1, 1, 0); + tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + tableLayoutPanel1.Location = new System.Drawing.Point(0, 581); + tableLayoutPanel1.Name = "tableLayoutPanel1"; + tableLayoutPanel1.RowCount = 1; + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + tableLayoutPanel1.Size = new System.Drawing.Size(565, 39); + tableLayoutPanel1.TabIndex = 12; + // + // FormGDPISettings + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(565, 620); + Controls.Add(tableLayoutPanel1); + Controls.Add(flowLayoutPanel4); + Controls.Add(menuStrip1); + MainMenuStrip = menuStrip1; + Name = "FormGDPISettings"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + Text = "FormGDPISettings"; + Load += FormGDPISettings_Load; + ((System.ComponentModel.ISupportInitialize)BS_GDPISettings).EndInit(); + flowLayoutPanel4.ResumeLayout(false); + flowLayoutPanel4.PerformLayout(); + tableLayoutPanel16.ResumeLayout(false); + tableLayoutPanel16.PerformLayout(); + tableLayoutPanel14.ResumeLayout(false); + tableLayoutPanel14.PerformLayout(); + tableLayoutPanel15.ResumeLayout(false); + tableLayoutPanel15.PerformLayout(); + tableLayoutPanel10.ResumeLayout(false); + tableLayoutPanel10.PerformLayout(); + tableLayoutPanel4.ResumeLayout(false); + tableLayoutPanel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown2).EndInit(); + tableLayoutPanel6.ResumeLayout(false); + tableLayoutPanel6.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown4).EndInit(); + tableLayoutPanel3.ResumeLayout(false); + tableLayoutPanel3.PerformLayout(); + tableLayoutPanel5.ResumeLayout(false); + tableLayoutPanel5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown3).EndInit(); + tableLayoutPanel2.ResumeLayout(false); + tableLayoutPanel2.PerformLayout(); + tableLayoutPanel11.ResumeLayout(false); + tableLayoutPanel11.PerformLayout(); + tableLayoutPanel7.ResumeLayout(false); + tableLayoutPanel7.PerformLayout(); + tableLayoutPanel8.ResumeLayout(false); + tableLayoutPanel8.PerformLayout(); + tableLayoutPanel19.ResumeLayout(false); + tableLayoutPanel19.PerformLayout(); + tableLayoutPanel9.ResumeLayout(false); + tableLayoutPanel9.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown5).EndInit(); + tableLayoutPanel18.ResumeLayout(false); + tableLayoutPanel18.PerformLayout(); + tableLayoutPanel17.ResumeLayout(false); + tableLayoutPanel17.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown1).EndInit(); + tableLayoutPanel12.ResumeLayout(false); + tableLayoutPanel12.PerformLayout(); + tableLayoutPanel13.ResumeLayout(false); + tableLayoutPanel13.PerformLayout(); + tableLayoutPanel20.ResumeLayout(false); + tableLayoutPanel20.PerformLayout(); + tableLayoutPanel21.ResumeLayout(false); + tableLayoutPanel21.PerformLayout(); + tableLayoutPanel22.ResumeLayout(false); + tableLayoutPanel22.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)numericUpDown6).EndInit(); + menuStrip1.ResumeLayout(false); + menuStrip1.PerformLayout(); + flowLayoutPanel1.ResumeLayout(false); + flowLayoutPanel1.PerformLayout(); + tableLayoutPanel1.ResumeLayout(false); + tableLayoutPanel1.PerformLayout(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private System.Windows.Forms.BindingSource BS_GDPISettings; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel16; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.CheckBox checkBox21; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel14; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.CheckBox checkBox15; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel15; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.CheckBox checkBox17; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel10; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.CheckBox checkBox18; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; + private System.Windows.Forms.CheckBox checkBox9; + private System.Windows.Forms.NumericUpDown numericUpDown2; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6; + private System.Windows.Forms.CheckBox checkBox11; + private System.Windows.Forms.NumericUpDown numericUpDown4; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.CheckBox checkBox8; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5; + private System.Windows.Forms.CheckBox checkBox10; + private System.Windows.Forms.NumericUpDown numericUpDown3; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.CheckBox checkBox16; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel11; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.CheckBox checkBox19; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel7; + private System.Windows.Forms.CheckBox checkBox12; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel8; + private System.Windows.Forms.CheckBox checkBox13; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.TextBox textBox6; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel19; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.CheckBox checkBox5; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel9; + private System.Windows.Forms.CheckBox checkBox14; + private System.Windows.Forms.NumericUpDown numericUpDown5; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel18; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.CheckBox checkBox4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel17; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.NumericUpDown numericUpDown1; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.CheckBox checkBox20; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel13; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.CheckBox checkBox6; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel20; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.CheckBox checkBox7; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel21; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.CheckBox checkBox22; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel22; + private System.Windows.Forms.CheckBox checkBox23; + private System.Windows.Forms.NumericUpDown numericUpDown6; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.Button B_OK; + private System.Windows.Forms.Button B_Cancel; + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.ToolStripMenuItem copyFromModesetToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem modesset1ToolStripMenuItem; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + } +} \ No newline at end of file diff --git a/GDPIControl/Forms/FormGDPISettings.cs b/GDPIControl/Forms/FormGDPISettings.cs new file mode 100644 index 0000000..a88bd55 --- /dev/null +++ b/GDPIControl/Forms/FormGDPISettings.cs @@ -0,0 +1,99 @@ +using GDPIControl.Model; +using System; +using System.Windows.Forms; + +namespace GDPIControl.Forms +{ + public partial class FormGDPISettings : Form + { + //private readonly Regex IP_R = new(@"^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$"); + + private readonly GDPISettings GDPISettings; + private readonly ControlSettings Settings; + + public FormGDPISettings(ControlSettings settings) + { + InitializeComponent(); + Settings = settings; + GDPISettings = (GDPISettings)(Settings.Modeset switch + { + Modeset.Custom1 => settings.CustomSettings1, + Modeset.Custom2 => settings.CustomSettings2, + Modeset.Custom3 => settings.CustomSettings3, + _ => default + }).Clone(); + BS_GDPISettings.DataSource = GDPISettings; + } + + #region UIEvents + + #region Validating + /* + Private Sub DNS_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS_IP.Validating + If DNS_IP.Text = "" Then Exit Sub + Try + Dim M = IP_R.Match(DNS_IP.Text) + e.Cancel = Not M.Success + Catch ex As Exception + e.Cancel = True + End Try + End Sub + + Private Sub DNS_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS_Port.Validating + Try + Dim p = CInt(DNS_Port.Text) + e.Cancel = p <= 0 Or p > 65535 + Catch ex As Exception + e.Cancel = True + End Try + End Sub + + Private Sub DNS6_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_IP.Validating + If DNS6_IP.Text = "" Then Exit Sub + Try + Dim IP As IPAddress = Nothing + Dim r = IPAddress.TryParse(DNS6_IP.Text, IP) + Dim T = IP.AddressFamily + Catch ex As Exception + e.Cancel = True + End Try + End Sub + + Private Sub DNS6_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_Port.Validating + Try + Dim p = CInt(DNS6_Port.Text) + e.Cancel = p <= 0 Or p > 65535 + Catch ex As Exception + e.Cancel = True + End Try + End Sub + */ + #endregion Validating + + private void B_Cancel_Click(object sender, EventArgs e) + { + DialogResult = DialogResult.Cancel; + Close(); + } + + private void B_OK_Click(object sender, EventArgs e) + { + _ = Settings.Modeset switch + { + Modeset.Custom1 => Settings.CustomSettings1 = GDPISettings, + Modeset.Custom2 => Settings.CustomSettings2 = GDPISettings, + Modeset.Custom3 => Settings.CustomSettings3 = GDPISettings, + _ => throw new InvalidOperationException() + }; + DialogResult = DialogResult.OK; + Close(); + } + + private void FormGDPISettings_Load(object sender, EventArgs e) + { + Icon = Owner.Icon; + } + + #endregion UIEvents + } +} \ No newline at end of file diff --git a/GDPIControl/Forms/FormGDPISettings.resx b/GDPIControl/Forms/FormGDPISettings.resx new file mode 100644 index 0000000..f9a3803 --- /dev/null +++ b/GDPIControl/Forms/FormGDPISettings.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + + Fragment (split) the packets just as --native-frag, but send them in the reversed order. Works with the websites which could not handle segmented HTTPS TLS ClientHello (because they receive the TCP flow "combined") + + + 157, 17 + + \ No newline at end of file diff --git a/GDPIControl/Model/ControlSettings.cs b/GDPIControl/Model/ControlSettings.cs index 6d85c54..01edfd3 100644 --- a/GDPIControl/Model/ControlSettings.cs +++ b/GDPIControl/Model/ControlSettings.cs @@ -4,6 +4,9 @@ public class ControlSettings { public string Arguments { get; set; } public GDPISettings GDPISettings { get; set; } + public GDPISettings CustomSettings1 { get; set; } + public GDPISettings CustomSettings2 { get; set; } + public GDPISettings CustomSettings3 { get; set; } public Modeset Modeset { get; set; } public bool LaunchMinimazed { get; set; } public bool AutostartGDPI { get; set; } diff --git a/GDPIControl/Model/GDPISettings.cs b/GDPIControl/Model/GDPISettings.cs index 3222f82..3df89a7 100644 --- a/GDPIControl/Model/GDPISettings.cs +++ b/GDPIControl/Model/GDPISettings.cs @@ -1,10 +1,11 @@ -using System.ComponentModel; +using System; +using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text; namespace GDPIControl.Model { - public class GDPISettings : INotifyPropertyChanged + public class GDPISettings : INotifyPropertyChanged, ICloneable { public GDPISettings() { @@ -259,6 +260,8 @@ public bool MP // (like file transfers) in already established sessions. // May skip some huge HTTP requests from being processed. + public object Clone() => MemberwiseClone(); + #region Static public static string ModesetArgument(Modeset modeset) diff --git a/GDPIControl/Model/Modeset.cs b/GDPIControl/Model/Modeset.cs index 33162c1..fb8e965 100644 --- a/GDPIControl/Model/Modeset.cs +++ b/GDPIControl/Model/Modeset.cs @@ -8,6 +8,9 @@ public enum Modeset M4, M5, M6, - Custom + Custom, + Custom1, + Custom2, + Custom3 } } \ No newline at end of file diff --git a/GDPIControl/Resources/Icons8/Cancel16.png b/GDPIControl/Resources/Icons8/Cancel16.png new file mode 100644 index 0000000000000000000000000000000000000000..19c04addbde3d194ff7ece5331cee8b6ea004fd5 GIT binary patch literal 450 zcmV;z0X_bSP)5efJP7RJJRCA$_kxo$9M#Od~fIeTVy;h!a)!urDWxWE!H z(u|(0NU5)UUHuX8l1>e1yaJY$4seU*)Q?MU@S^hi4e*jq4QS(CAx!)%Z6AECW?K-| ziZx#0_htZ@j0YUHP71=Ao7w<)$rQ0nHfo7wvUtgqYq3^O&x`@|gcQ4MopIFAFnV(r zR4Ax7wh8k4H12LA4WY3FRC@p{k^md=KZ<9d1fAOjAUMj0S=%Zk@wEdnmcN&cMi47C zmk`Tj(HlDig@b4W{P%VXv9$0xFJ(_zk&ozSl{#S!BnCF^%yD`d?z**ee{L~4; zYFF~Yac}u%9h`sQ$0Y~$p^Nr=KPFqPLj)MSsJ!}G%>pO5PvU4J9Q#`4I(}uh>gky= sF=i2w(J--9<2BCvFK-{aF#KD60?wm*gW|f(TJ?kq%BN=q~Q| z8>nfKP6Z3a4vo~M-qKA6X@`Q7f*t$<>KxPLIh2b@$VCMI%X_@z{on819iY&~_3diC z-7Bfir7}sydb?L*M5jJO)#}`=q!}=oY#kgn0hl|6!2y7L{~Z8WCQ}4}J0Uy(SA$OT zNJU`wTMb^w=O7zpb0MEYzt!LXDsciWl=G~vqq4W1M$F@d#5?$l5)H&;3Ne`mc{tXF zj$Io%cB;Yar;nxi*-<Vo-FUDvi^vdi%cu`RaDsN%Ri{c4EX8_-Gur++1&VCIs@;?euJ-{}oty zq~(_9xVcco3J;t_|KKs$5<%g)?K=C>Ug$Y!`@zVhl2r09$fS}e>~7SG*+{^H%^1&P z@Lq0}+is7W?mqyrpfI$cvJhFZZJx}}jlrdtt6bgQas0i7XZ!%sg-AeDGz4BRJ>x@e zjZ7*T-F*FL90t(At6&4Dp9Gta(@-zT}iJPP0say^%_*R`j(K9~B-&*|o{r5o_ z@bRq%ql0@>-#h}|hq*m7(2jut4o`}W(y#--IBr>>73QAt<6)H_#&Ii=m2lBqZ+1M# z%^`Xe+L>q@4$W-uRqR(Djg49{i{-yXWhp3Xi<$ZS<=vXy z!hb?~J(eB^C!NuuNV4nua1TwaGb>XA?|bE%u3JS7fEsxw$YjR37?-D?RpvEkZ~*~?%OC;>(5p7f)kxG zYA&ta%3t429`S1>i+v*^ORG2Y*HQ-n?q}<+3V~610ov_gL2YrqaU`qeFv=RHd8ZRf zH&OT7(?<0uNH!_s`?1JI^O=mBj -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. // //------------------------------------------------------------------------------ @@ -13,12 +13,12 @@ namespace GDPIControl { /// - /// A strongly-typed resource class, for looking up localized strings, etc. + /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д. /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. + // Этот класс создан автоматически классом StronglyTypedResourceBuilder + // с помощью такого средства, как ResGen или Visual Studio. + // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen + // с параметром /str или перестройте свой проект VS. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] @@ -33,7 +33,7 @@ internal icons8() { } /// - /// Returns the cached ResourceManager instance used by this class. + /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { @@ -47,8 +47,8 @@ internal icons8() { } /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. + /// Перезаписывает свойство CurrentUICulture текущего потока для всех + /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { @@ -61,7 +61,27 @@ internal icons8() { } /// - /// Looks up a localized resource of type System.Drawing.Bitmap. + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Cancel16 { + get { + object obj = ResourceManager.GetObject("Cancel16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap CopyToClipboard16 { + get { + object obj = ResourceManager.GetObject("CopyToClipboard16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// internal static System.Drawing.Bitmap info16 { get { @@ -71,7 +91,27 @@ internal static System.Drawing.Bitmap info16 { } /// - /// Looks up a localized resource of type System.Drawing.Bitmap. + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Ok16 { + get { + object obj = ResourceManager.GetObject("Ok16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Replace16 { + get { + object obj = ResourceManager.GetObject("Replace16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// internal static System.Drawing.Bitmap settings16 { get { @@ -81,7 +121,7 @@ internal static System.Drawing.Bitmap settings16 { } /// - /// Looks up a localized resource of type System.Drawing.Bitmap. + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// internal static System.Drawing.Bitmap shutdown16 { get { diff --git a/GDPIControl/icons8.resx b/GDPIControl/icons8.resx index fabcb7f..7b8140e 100644 --- a/GDPIControl/icons8.resx +++ b/GDPIControl/icons8.resx @@ -118,9 +118,21 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Resources\Icons8\Cancel16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\Icons8\CopyToClipboard16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + resources\icons8\info16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\Icons8\Ok16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\Icons8\Replace16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + resources\icons8\settings16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a