Пример #1
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(UDPForm));

            this.panel_bottom        = new Panel();
            this.sendUc1             = new SendUc();
            this.expandableSplitter1 = new ExpandableSplitter();
            this.checkBoxX_feedback  = new CheckBoxX();
            this.buttonX_start       = new ButtonX();
            this.labelX2             = new LabelX();
            this.panel_main          = new Panel();
            this.receiveUc1          = new ReceiveUc();
            this.expandableSplitter2 = new ExpandableSplitter();
            this.listViewEx1         = new ListViewEx();
            this.columnHeader_ip     = new ColumnHeader();
            this.columnHeader_port   = new ColumnHeader();
            this.groupBox2           = new GroupBox();
            this.panel_left          = new Panel();
            this.panel2    = new Panel();
            this.panel1    = new Panel();
            this.groupBox1 = new GroupBox();
            this.labelX3   = new LabelX();
            this.numericUpDown_loc_port = new NumericUpDown();
            this.buttonX_stop           = new ButtonX();
            this.bar1           = new Bar();
            this.udpport1       = new Udpport(this.components);
            this.comboBoxEx_ip  = new ComboBoxEx();
            this.buttonX_ref_ip = new ButtonX();
            this.panel_bottom.SuspendLayout();
            this.panel_main.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.panel_left.SuspendLayout();
            this.panel2.SuspendLayout();
            this.panel1.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.numericUpDown_loc_port.BeginInit();
            this.bar1.BeginInit();
            base.SuspendLayout();
            this.panel_bottom.Controls.Add(this.sendUc1);
            this.panel_bottom.Dock                                = DockStyle.Bottom;
            this.panel_bottom.Location                            = new Point(0xbf, 0xdf);
            this.panel_bottom.Name                                = "panel_bottom";
            this.panel_bottom.Size                                = new Size(0x1c3, 0x86);
            this.panel_bottom.TabIndex                            = 8;
            this.sendUc1.Dock                                     = DockStyle.Fill;
            this.sendUc1.IP                                       = "127.0.0.1";
            this.sendUc1.Location                                 = new Point(0, 0);
            this.sendUc1.Name                                     = "sendUc1";
            this.sendUc1.Port                                     = 0x1a0a;
            this.sendUc1.Size                                     = new Size(0x1c3, 0x86);
            this.sendUc1.TabIndex                                 = 0;
            this.expandableSplitter1.BackColor2                   = SystemColors.ControlDarkDark;
            this.expandableSplitter1.BackColor2SchemePart         = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.BackColorSchemePart          = eColorSchemePart.PanelBackground;
            this.expandableSplitter1.ExpandFillColor              = SystemColors.ControlDarkDark;
            this.expandableSplitter1.ExpandFillColorSchemePart    = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.ExpandLineColor              = SystemColors.ControlText;
            this.expandableSplitter1.ExpandLineColorSchemePart    = eColorSchemePart.ItemText;
            this.expandableSplitter1.GripDarkColor                = SystemColors.ControlText;
            this.expandableSplitter1.GripDarkColorSchemePart      = eColorSchemePart.ItemText;
            this.expandableSplitter1.GripLightColor               = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter1.GripLightColorSchemePart     = eColorSchemePart.BarBackground;
            this.expandableSplitter1.HotBackColor                 = Color.FromArgb(0xa4, 0xe7, 0xfb);
            this.expandableSplitter1.HotBackColor2                = Color.FromArgb(230, 0xf5, 0xf9);
            this.expandableSplitter1.HotBackColor2SchemePart      = eColorSchemePart.ItemPressedBackground2;
            this.expandableSplitter1.HotBackColorSchemePart       = eColorSchemePart.ItemPressedBackground;
            this.expandableSplitter1.HotExpandFillColor           = SystemColors.ControlDarkDark;
            this.expandableSplitter1.HotExpandFillColorSchemePart = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.HotExpandLineColor           = SystemColors.ControlText;
            this.expandableSplitter1.HotExpandLineColorSchemePart = eColorSchemePart.ItemText;
            this.expandableSplitter1.HotGripDarkColor             = SystemColors.ControlDarkDark;
            this.expandableSplitter1.HotGripDarkColorSchemePart   = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.HotGripLightColor            = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter1.HotGripLightColorSchemePart  = eColorSchemePart.BarBackground;
            this.expandableSplitter1.Location                     = new Point(0xbc, 0);
            this.expandableSplitter1.Name                         = "expandableSplitter1";
            this.expandableSplitter1.Size                         = new Size(3, 0x165);
            this.expandableSplitter1.TabIndex                     = 7;
            this.expandableSplitter1.TabStop                      = false;
            this.checkBoxX_feedback.Location                      = new Point(2, 0x48);
            this.checkBoxX_feedback.Name                          = "checkBoxX_feedback";
            this.checkBoxX_feedback.Size                          = new Size(0x4b, 0x17);
            this.checkBoxX_feedback.TabIndex                      = 5;
            this.checkBoxX_feedback.Text                          = "自动回传";
            this.checkBoxX_feedback.CheckedChanged               += new EventHandler(this.checkBoxX_feedback_CheckedChanged);
            this.buttonX_start.AccessibleRole                     = AccessibleRole.PushButton;
            this.buttonX_start.ColorTable                         = eButtonColor.OrangeWithBackground;
            this.buttonX_start.Location                           = new Point(9, 0x67);
            this.buttonX_start.Name                               = "buttonX_start";
            this.buttonX_start.Size                               = new Size(0x45, 0x17);
            this.buttonX_start.TabIndex                           = 4;
            this.buttonX_start.Text                               = "启动";
            this.buttonX_start.Click                             += new EventHandler(this.buttonX_start_Click);
            this.labelX2.Location                                 = new Point(6, 0x10);
            this.labelX2.Name                                     = "labelX2";
            this.labelX2.Size                                     = new Size(0x41, 0x17);
            this.labelX2.TabIndex                                 = 2;
            this.labelX2.Text                                     = "本地IP:";
            this.panel_main.Controls.Add(this.receiveUc1);
            this.panel_main.Dock                                  = DockStyle.Fill;
            this.panel_main.Location                              = new Point(0xbf, 0);
            this.panel_main.Name                                  = "panel_main";
            this.panel_main.Size                                  = new Size(0x1c3, 0xdf);
            this.panel_main.TabIndex                              = 10;
            this.receiveUc1.Dock                                  = DockStyle.Fill;
            this.receiveUc1.Location                              = new Point(0, 0);
            this.receiveUc1.Name                                  = "receiveUc1";
            this.receiveUc1.Size                                  = new Size(0x1c3, 0xdf);
            this.receiveUc1.TabIndex                              = 0;
            this.expandableSplitter2.BackColor2                   = SystemColors.ControlDarkDark;
            this.expandableSplitter2.BackColor2SchemePart         = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.BackColorSchemePart          = eColorSchemePart.PanelBackground;
            this.expandableSplitter2.Dock                         = DockStyle.Bottom;
            this.expandableSplitter2.ExpandFillColor              = SystemColors.ControlDarkDark;
            this.expandableSplitter2.ExpandFillColorSchemePart    = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.ExpandLineColor              = SystemColors.ControlText;
            this.expandableSplitter2.ExpandLineColorSchemePart    = eColorSchemePart.ItemText;
            this.expandableSplitter2.GripDarkColor                = SystemColors.ControlText;
            this.expandableSplitter2.GripDarkColorSchemePart      = eColorSchemePart.ItemText;
            this.expandableSplitter2.GripLightColor               = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter2.GripLightColorSchemePart     = eColorSchemePart.BarBackground;
            this.expandableSplitter2.HotBackColor                 = Color.FromArgb(0xa4, 0xe7, 0xfb);
            this.expandableSplitter2.HotBackColor2                = Color.FromArgb(230, 0xf5, 0xf9);
            this.expandableSplitter2.HotBackColor2SchemePart      = eColorSchemePart.ItemPressedBackground2;
            this.expandableSplitter2.HotBackColorSchemePart       = eColorSchemePart.ItemPressedBackground;
            this.expandableSplitter2.HotExpandFillColor           = SystemColors.ControlDarkDark;
            this.expandableSplitter2.HotExpandFillColorSchemePart = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.HotExpandLineColor           = SystemColors.ControlText;
            this.expandableSplitter2.HotExpandLineColorSchemePart = eColorSchemePart.ItemText;
            this.expandableSplitter2.HotGripDarkColor             = SystemColors.ControlDarkDark;
            this.expandableSplitter2.HotGripDarkColorSchemePart   = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.HotGripLightColor            = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter2.HotGripLightColorSchemePart  = eColorSchemePart.BarBackground;
            this.expandableSplitter2.Location                     = new Point(0xbc, 0x165);
            this.expandableSplitter2.Name                         = "expandableSplitter2";
            this.expandableSplitter2.Size                         = new Size(0x1c6, 3);
            this.expandableSplitter2.TabIndex                     = 9;
            this.expandableSplitter2.TabStop                      = false;
            this.listViewEx1.Border.Class                         = "ListViewBorder";
            this.listViewEx1.Columns.AddRange(new ColumnHeader[] { this.columnHeader_ip, this.columnHeader_port });
            this.listViewEx1.Dock          = DockStyle.Fill;
            this.listViewEx1.FullRowSelect = true;
            this.listViewEx1.GridLines     = true;
            this.listViewEx1.Location      = new Point(3, 0x11);
            this.listViewEx1.MultiSelect   = false;
            this.listViewEx1.Name          = "listViewEx1";
            this.listViewEx1.Size          = new Size(0xb0, 0xbd);
            this.listViewEx1.TabIndex      = 0;
            this.listViewEx1.UseCompatibleStateImageBehavior = false;
            this.listViewEx1.View = View.Details;
            this.listViewEx1.SelectedIndexChanged += new EventHandler(this.listViewEx1_SelectedIndexChanged);
            this.columnHeader_ip.Text              = "IP";
            this.columnHeader_ip.Width             = 0x5d;
            this.columnHeader_port.Text            = "端口";
            this.columnHeader_port.Width           = 40;
            this.groupBox2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.groupBox2.Controls.Add(this.listViewEx1);
            this.groupBox2.Location = new Point(3, 3);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new Size(0xb6, 0xd1);
            this.groupBox2.TabIndex = 0;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = "客户端列表";
            this.panel_left.Controls.Add(this.panel2);
            this.panel_left.Controls.Add(this.panel1);
            this.panel_left.Dock     = DockStyle.Left;
            this.panel_left.Location = new Point(0, 0);
            this.panel_left.Name     = "panel_left";
            this.panel_left.Size     = new Size(0xbc, 360);
            this.panel_left.TabIndex = 5;
            this.panel2.Controls.Add(this.groupBox2);
            this.panel2.Dock     = DockStyle.Fill;
            this.panel2.Location = new Point(0, 0x8e);
            this.panel2.Name     = "panel2";
            this.panel2.Size     = new Size(0xbc, 0xda);
            this.panel2.TabIndex = 1;
            this.panel1.Controls.Add(this.groupBox1);
            this.panel1.Dock      = DockStyle.Top;
            this.panel1.Location  = new Point(0, 0);
            this.panel1.Name      = "panel1";
            this.panel1.Size      = new Size(0xbc, 0x8e);
            this.panel1.TabIndex  = 0;
            this.groupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.groupBox1.Controls.Add(this.buttonX_ref_ip);
            this.groupBox1.Controls.Add(this.comboBoxEx_ip);
            this.groupBox1.Controls.Add(this.labelX3);
            this.groupBox1.Controls.Add(this.numericUpDown_loc_port);
            this.groupBox1.Controls.Add(this.buttonX_stop);
            this.groupBox1.Controls.Add(this.checkBoxX_feedback);
            this.groupBox1.Controls.Add(this.buttonX_start);
            this.groupBox1.Controls.Add(this.labelX2);
            this.groupBox1.Location = new Point(3, 3);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new Size(0xb6, 0x85);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "设置区";
            this.labelX3.Location   = new Point(6, 0x2b);
            this.labelX3.Name       = "labelX3";
            this.labelX3.Size       = new Size(0x41, 0x17);
            this.labelX3.TabIndex   = 11;
            this.labelX3.Text       = "本地端口:";
            this.numericUpDown_loc_port.Location = new Point(0x49, 0x2d);
            int[] CS$0$0001 = new int[4];
            CS$0$0001[0] = 0x7fff;
            this.numericUpDown_loc_port.Maximum = new decimal(CS$0$0001);
            CS$0$0001    = new int[4];
            CS$0$0001[0] = 1;
            this.numericUpDown_loc_port.Minimum  = new decimal(CS$0$0001);
            this.numericUpDown_loc_port.Name     = "numericUpDown_loc_port";
            this.numericUpDown_loc_port.Size     = new Size(0x41, 0x15);
            this.numericUpDown_loc_port.TabIndex = 10;
            CS$0$0001    = new int[4];
            CS$0$0001[0] = 0x1a0a;
            this.numericUpDown_loc_port.Value = new decimal(CS$0$0001);
            this.buttonX_stop.AccessibleRole  = AccessibleRole.PushButton;
            this.buttonX_stop.ColorTable      = eButtonColor.OrangeWithBackground;
            this.buttonX_stop.Enabled         = false;
            this.buttonX_stop.Location        = new Point(100, 0x67);
            this.buttonX_stop.Name            = "buttonX_stop";
            this.buttonX_stop.Size            = new Size(0x45, 0x17);
            this.buttonX_stop.TabIndex        = 7;
            this.buttonX_stop.Text            = "停止";
            this.buttonX_stop.Click          += new EventHandler(this.buttonX_stop_Click);
            this.bar1.AccessibleDescription   = "DotNetBar Bar (bar1)";
            this.bar1.AccessibleName          = "DotNetBar Bar";
            this.bar1.AccessibleRole          = AccessibleRole.StatusBar;
            this.bar1.Dock                       = DockStyle.Bottom;
            this.bar1.GrabHandleStyle            = eGrabHandleStyle.ResizeHandle;
            this.bar1.Location                   = new Point(0, 360);
            this.bar1.Name                       = "bar1";
            this.bar1.Size                       = new Size(0x282, 0x19);
            this.bar1.Stretch                    = true;
            this.bar1.Style                      = eDotNetBarStyle.Office2007;
            this.bar1.TabIndex                   = 6;
            this.bar1.TabStop                    = false;
            this.bar1.Text                       = "bar1";
            this.udpport1.About                  = "";
            this.udpport1.InvokeThrough          = null;
            this.udpport1.TimeToLive             = 0xff;
            this.comboBoxEx_ip.DisplayMember     = "Text";
            this.comboBoxEx_ip.DrawMode          = DrawMode.OwnerDrawFixed;
            this.comboBoxEx_ip.FormattingEnabled = true;
            this.comboBoxEx_ip.Location          = new Point(0x48, 0x11);
            this.comboBoxEx_ip.Name              = "comboBoxEx_ip";
            this.comboBoxEx_ip.Size              = new Size(0x66, 0x16);
            this.comboBoxEx_ip.TabIndex          = 12;
            this.comboBoxEx_ip.Text              = "192.168.1.66";
            this.buttonX_ref_ip.AccessibleRole   = AccessibleRole.PushButton;
            this.buttonX_ref_ip.ColorTable       = eButtonColor.OrangeWithBackground;
            this.buttonX_ref_ip.Enabled          = false;
            this.buttonX_ref_ip.Location         = new Point(0x49, 0x48);
            this.buttonX_ref_ip.Name             = "buttonX_ref_ip";
            this.buttonX_ref_ip.Size             = new Size(0x67, 0x17);
            this.buttonX_ref_ip.TabIndex         = 13;
            this.buttonX_ref_ip.Text             = "刷新本地IP列表";
            this.buttonX_ref_ip.Click           += new EventHandler(this.buttonX_ref_ip_Click);
            base.AutoScaleDimensions             = new SizeF(6f, 12f);
            base.AutoScaleMode                   = AutoScaleMode.Font;
            base.ClientSize                      = new Size(0x282, 0x181);
            base.Controls.Add(this.panel_main);
            base.Controls.Add(this.panel_bottom);
            base.Controls.Add(this.expandableSplitter1);
            base.Controls.Add(this.expandableSplitter2);
            base.Controls.Add(this.panel_left);
            base.Controls.Add(this.bar1);
            base.Icon  = (Icon)resources.GetObject("$this.Icon");
            base.Name  = "UDPForm";
            this.Text  = "UDPForm";
            base.Load += new EventHandler(this.UDPForm_Load);
            this.panel_bottom.ResumeLayout(false);
            this.panel_main.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.panel_left.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.numericUpDown_loc_port.EndInit();
            this.bar1.EndInit();
            base.ResumeLayout(false);
        }
Пример #2
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(TCPClinetForm));

            this.panel_top      = new Panel();
            this.groupBox1      = new GroupBox();
            this.buttonX_stop   = new ButtonX();
            this.buttonX_start  = new ButtonX();
            this.checkBoxX1     = new CheckBoxX();
            this.textBoxX_ip    = new TextBoxX();
            this.labelX1        = new LabelX();
            this.numericUpDown1 = new NumericUpDown();
            this.labelX2        = new LabelX();
            this.panel_bottom   = new Panel();
            this.sendUc1        = new SendUc();
            this.panel_main     = new Panel();
            this.receiveUc1     = new ReceiveUc();
            this.ipport1        = new Ipport(this.components);
            this.panel_top.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.numericUpDown1.BeginInit();
            this.panel_bottom.SuspendLayout();
            this.panel_main.SuspendLayout();
            base.SuspendLayout();
            this.panel_top.Controls.Add(this.groupBox1);
            this.panel_top.Dock     = DockStyle.Top;
            this.panel_top.Location = new Point(0, 0);
            this.panel_top.Name     = "panel_top";
            this.panel_top.Size     = new Size(0x225, 0x37);
            this.panel_top.TabIndex = 0;
            this.groupBox1.Anchor   = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.groupBox1.Controls.Add(this.buttonX_stop);
            this.groupBox1.Controls.Add(this.buttonX_start);
            this.groupBox1.Controls.Add(this.checkBoxX1);
            this.groupBox1.Controls.Add(this.textBoxX_ip);
            this.groupBox1.Controls.Add(this.labelX1);
            this.groupBox1.Controls.Add(this.numericUpDown1);
            this.groupBox1.Controls.Add(this.labelX2);
            this.groupBox1.Location           = new Point(3, 3);
            this.groupBox1.Name               = "groupBox1";
            this.groupBox1.Size               = new Size(0x21f, 0x2e);
            this.groupBox1.TabIndex           = 0;
            this.groupBox1.TabStop            = false;
            this.groupBox1.Text               = "设置区";
            this.buttonX_stop.AccessibleRole  = AccessibleRole.PushButton;
            this.buttonX_stop.Anchor          = AnchorStyles.Right | AnchorStyles.Top;
            this.buttonX_stop.ColorTable      = eButtonColor.OrangeWithBackground;
            this.buttonX_stop.Enabled         = false;
            this.buttonX_stop.Location        = new Point(0x1ca, 13);
            this.buttonX_stop.Name            = "buttonX_stop";
            this.buttonX_stop.Size            = new Size(0x45, 0x17);
            this.buttonX_stop.TabIndex        = 13;
            this.buttonX_stop.Text            = "断开";
            this.buttonX_stop.Click          += new EventHandler(this.buttonX_stop_Click);
            this.buttonX_start.AccessibleRole = AccessibleRole.PushButton;
            this.buttonX_start.Anchor         = AnchorStyles.Right | AnchorStyles.Top;
            this.buttonX_start.ColorTable     = eButtonColor.OrangeWithBackground;
            this.buttonX_start.Location       = new Point(0x176, 13);
            this.buttonX_start.Name           = "buttonX_start";
            this.buttonX_start.Size           = new Size(0x45, 0x17);
            this.buttonX_start.TabIndex       = 12;
            this.buttonX_start.Text           = "连接";
            this.buttonX_start.Click         += new EventHandler(this.buttonX_start_Click);
            this.checkBoxX1.Location          = new Point(0x102, 11);
            this.checkBoxX1.Name              = "checkBoxX1";
            this.checkBoxX1.Size              = new Size(0x4b, 0x17);
            this.checkBoxX1.TabIndex          = 11;
            this.checkBoxX1.Text              = "自动回传";
            this.checkBoxX1.CheckedChanged   += new EventHandler(this.checkBoxX1_CheckedChanged);
            this.textBoxX_ip.Border.Class     = "TextBoxBorder";
            this.textBoxX_ip.Location         = new Point(0x23, 13);
            this.textBoxX_ip.Name             = "textBoxX_ip";
            this.textBoxX_ip.Size             = new Size(100, 0x15);
            this.textBoxX_ip.TabIndex         = 10;
            this.textBoxX_ip.Text             = "127.0.0.1";
            this.textBoxX_ip.WatermarkText    = "请输入目的IP";
            this.labelX1.Location             = new Point(9, 13);
            this.labelX1.Name            = "labelX1";
            this.labelX1.Size            = new Size(50, 0x17);
            this.labelX1.TabIndex        = 9;
            this.labelX1.Text            = "IP:";
            this.numericUpDown1.Location = new Point(0xb1, 13);
            int[] CS$0$0000 = new int[4];
            CS$0$0000[0] = 0x7fff;
            this.numericUpDown1.Maximum = new decimal(CS$0$0000);
            CS$0$0000    = new int[4];
            CS$0$0000[0] = 1;
            this.numericUpDown1.Minimum  = new decimal(CS$0$0000);
            this.numericUpDown1.Name     = "numericUpDown1";
            this.numericUpDown1.Size     = new Size(0x41, 0x15);
            this.numericUpDown1.TabIndex = 8;
            CS$0$0000    = new int[4];
            CS$0$0000[0] = 0x1a0a;
            this.numericUpDown1.Value = new decimal(CS$0$0000);
            this.labelX2.Location     = new Point(0x8d, 13);
            this.labelX2.Name         = "labelX2";
            this.labelX2.Size         = new Size(0x29, 0x17);
            this.labelX2.TabIndex     = 7;
            this.labelX2.Text         = "端口:";
            this.panel_bottom.Controls.Add(this.sendUc1);
            this.panel_bottom.Dock     = DockStyle.Bottom;
            this.panel_bottom.Location = new Point(0, 0x115);
            this.panel_bottom.Name     = "panel_bottom";
            this.panel_bottom.Size     = new Size(0x225, 0x7d);
            this.panel_bottom.TabIndex = 1;
            this.sendUc1.Dock          = DockStyle.Fill;
            this.sendUc1.IP            = "127.0.0.1";
            this.sendUc1.Location      = new Point(0, 0);
            this.sendUc1.Name          = "sendUc1";
            this.sendUc1.Port          = 0x1a0a;
            this.sendUc1.Size          = new Size(0x225, 0x7d);
            this.sendUc1.TabIndex      = 0;
            this.panel_main.Controls.Add(this.receiveUc1);
            this.panel_main.Dock       = DockStyle.Fill;
            this.panel_main.Location   = new Point(0, 0x37);
            this.panel_main.Name       = "panel_main";
            this.panel_main.Size       = new Size(0x225, 0xde);
            this.panel_main.TabIndex   = 2;
            this.receiveUc1.Dock       = DockStyle.Fill;
            this.receiveUc1.Location   = new Point(0, 0);
            this.receiveUc1.Name       = "receiveUc1";
            this.receiveUc1.Size       = new Size(0x225, 0xde);
            this.receiveUc1.TabIndex   = 0;
            this.ipport1.About         = "";
            this.ipport1.EOL           = "";
            this.ipport1.EOLB          = new byte[0];
            this.ipport1.FirewallPort  = 0x438;
            this.ipport1.FirewallType  = IpportFirewallTypes.fwNone;
            this.ipport1.InvokeThrough = null;
            base.AutoScaleDimensions   = new SizeF(6f, 12f);
            base.AutoScaleMode         = AutoScaleMode.Font;
            base.ClientSize            = new Size(0x225, 0x192);
            base.Controls.Add(this.panel_main);
            base.Controls.Add(this.panel_bottom);
            base.Controls.Add(this.panel_top);
            base.Icon = (Icon)resources.GetObject("$this.Icon");
            base.Name = "TCPClinetForm";
            this.Text = "TCPClinetForm";
            this.panel_top.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.numericUpDown1.EndInit();
            this.panel_bottom.ResumeLayout(false);
            this.panel_main.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Пример #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(TCPServerForm));

            this.panel_left         = new Panel();
            this.panel2             = new Panel();
            this.groupBox2          = new GroupBox();
            this.listViewEx1        = new ListViewEx();
            this.columnHeader_index = new ColumnHeader();
            this.columnHeader_ip    = new ColumnHeader();
            this.columnHeader_port  = new ColumnHeader();
            this.panel1             = new Panel();
            this.groupBox1          = new GroupBox();
            this.buttonX_stop       = new ButtonX();
            this.numericUpDown1     = new NumericUpDown();
            this.checkBoxX1         = new CheckBoxX();
            this.buttonX_start      = new ButtonX();
            this.labelX2            = new LabelX();
            this.bar1 = new Bar();
            this.expandableSplitter1 = new ExpandableSplitter();
            this.panel_bottom        = new Panel();
            this.expandableSplitter2 = new ExpandableSplitter();
            this.panel_main          = new Panel();
            this.ipdaemon1           = new Ipdaemon(this.components);
            this.receiveUc1          = new ReceiveUc();
            this.sendUc1             = new SendUc();
            this.panel_left.SuspendLayout();
            this.panel2.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.panel1.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.numericUpDown1.BeginInit();
            this.bar1.BeginInit();
            this.panel_bottom.SuspendLayout();
            this.panel_main.SuspendLayout();
            base.SuspendLayout();
            this.panel_left.Controls.Add(this.panel2);
            this.panel_left.Controls.Add(this.panel1);
            this.panel_left.Dock     = DockStyle.Left;
            this.panel_left.Location = new Point(0, 0);
            this.panel_left.Name     = "panel_left";
            this.panel_left.Size     = new Size(0x101, 470);
            this.panel_left.TabIndex = 0;
            this.panel2.Controls.Add(this.groupBox2);
            this.panel2.Dock      = DockStyle.Fill;
            this.panel2.Location  = new Point(0, 0x61);
            this.panel2.Name      = "panel2";
            this.panel2.Size      = new Size(0x101, 0x175);
            this.panel2.TabIndex  = 1;
            this.groupBox2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.groupBox2.Controls.Add(this.listViewEx1);
            this.groupBox2.Location       = new Point(3, 3);
            this.groupBox2.Name           = "groupBox2";
            this.groupBox2.Size           = new Size(0xfb, 0x16c);
            this.groupBox2.TabIndex       = 0;
            this.groupBox2.TabStop        = false;
            this.groupBox2.Text           = "客户端列表";
            this.listViewEx1.Border.Class = "ListViewBorder";
            this.listViewEx1.CheckBoxes   = true;
            this.listViewEx1.Columns.AddRange(new ColumnHeader[] { this.columnHeader_index, this.columnHeader_ip, this.columnHeader_port });
            this.listViewEx1.Dock          = DockStyle.Fill;
            this.listViewEx1.FullRowSelect = true;
            this.listViewEx1.GridLines     = true;
            this.listViewEx1.Location      = new Point(3, 0x11);
            this.listViewEx1.MultiSelect   = false;
            this.listViewEx1.Name          = "listViewEx1";
            this.listViewEx1.Size          = new Size(0xf5, 0x158);
            this.listViewEx1.TabIndex      = 0;
            this.listViewEx1.UseCompatibleStateImageBehavior = false;
            this.listViewEx1.View         = View.Details;
            this.listViewEx1.ItemChecked += new ItemCheckedEventHandler(this.listViewEx1_ItemChecked);
            this.columnHeader_index.Text  = "序号";
            this.columnHeader_index.Width = 0x37;
            this.columnHeader_ip.Text     = "IP";
            this.columnHeader_ip.Width    = 0x6f;
            this.columnHeader_port.Text   = "端口";
            this.columnHeader_port.Width  = 0x48;
            this.panel1.Controls.Add(this.groupBox1);
            this.panel1.Dock      = DockStyle.Top;
            this.panel1.Location  = new Point(0, 0);
            this.panel1.Name      = "panel1";
            this.panel1.Size      = new Size(0x101, 0x61);
            this.panel1.TabIndex  = 0;
            this.groupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.groupBox1.Controls.Add(this.buttonX_stop);
            this.groupBox1.Controls.Add(this.numericUpDown1);
            this.groupBox1.Controls.Add(this.checkBoxX1);
            this.groupBox1.Controls.Add(this.buttonX_start);
            this.groupBox1.Controls.Add(this.labelX2);
            this.groupBox1.Location          = new Point(3, 3);
            this.groupBox1.Name              = "groupBox1";
            this.groupBox1.Size              = new Size(0xfb, 0x51);
            this.groupBox1.TabIndex          = 0;
            this.groupBox1.TabStop           = false;
            this.groupBox1.Text              = "设置区";
            this.buttonX_stop.AccessibleRole = AccessibleRole.PushButton;
            this.buttonX_stop.ColorTable     = eButtonColor.OrangeWithBackground;
            this.buttonX_stop.Enabled        = false;
            this.buttonX_stop.Location       = new Point(0x81, 0x34);
            this.buttonX_stop.Name           = "buttonX_stop";
            this.buttonX_stop.Size           = new Size(0x45, 0x17);
            this.buttonX_stop.TabIndex       = 7;
            this.buttonX_stop.Text           = "停止";
            this.buttonX_stop.Click         += new EventHandler(this.buttonX_stop_Click);
            this.numericUpDown1.Location     = new Point(0x2d, 0x10);
            int[] CS$0$0001 = new int[4];
            CS$0$0001[0] = 0x7fff;
            this.numericUpDown1.Maximum = new decimal(CS$0$0001);
            CS$0$0001    = new int[4];
            CS$0$0001[0] = 1;
            this.numericUpDown1.Minimum  = new decimal(CS$0$0001);
            this.numericUpDown1.Name     = "numericUpDown1";
            this.numericUpDown1.Size     = new Size(0x41, 0x15);
            this.numericUpDown1.TabIndex = 6;
            CS$0$0001    = new int[4];
            CS$0$0001[0] = 0x1a0a;
            this.numericUpDown1.Value         = new decimal(CS$0$0001);
            this.checkBoxX1.Location          = new Point(0x81, 0x10);
            this.checkBoxX1.Name              = "checkBoxX1";
            this.checkBoxX1.Size              = new Size(0x4b, 0x17);
            this.checkBoxX1.TabIndex          = 5;
            this.checkBoxX1.Text              = "自动回传";
            this.checkBoxX1.CheckedChanged   += new EventHandler(this.checkBoxX1_CheckedChanged);
            this.buttonX_start.AccessibleRole = AccessibleRole.PushButton;
            this.buttonX_start.ColorTable     = eButtonColor.OrangeWithBackground;
            this.buttonX_start.Location       = new Point(0x2d, 0x34);
            this.buttonX_start.Name           = "buttonX_start";
            this.buttonX_start.Size           = new Size(0x45, 0x17);
            this.buttonX_start.TabIndex       = 4;
            this.buttonX_start.Text           = "启动";
            this.buttonX_start.Click         += new EventHandler(this.buttonX_start_Click);
            this.labelX2.Location             = new Point(9, 0x10);
            this.labelX2.Name               = "labelX2";
            this.labelX2.Size               = new Size(0x29, 0x17);
            this.labelX2.TabIndex           = 2;
            this.labelX2.Text               = "端口:";
            this.bar1.AccessibleDescription = "DotNetBar Bar (bar1)";
            this.bar1.AccessibleName        = "DotNetBar Bar";
            this.bar1.AccessibleRole        = AccessibleRole.StatusBar;
            this.bar1.Dock                                        = DockStyle.Bottom;
            this.bar1.GrabHandleStyle                             = eGrabHandleStyle.ResizeHandle;
            this.bar1.Location                                    = new Point(0, 470);
            this.bar1.Name                                        = "bar1";
            this.bar1.Size                                        = new Size(0x341, 0x19);
            this.bar1.Stretch                                     = true;
            this.bar1.Style                                       = eDotNetBarStyle.Office2007;
            this.bar1.TabIndex                                    = 0;
            this.bar1.TabStop                                     = false;
            this.bar1.Text                                        = "bar1";
            this.expandableSplitter1.BackColor2                   = SystemColors.ControlDarkDark;
            this.expandableSplitter1.BackColor2SchemePart         = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.BackColorSchemePart          = eColorSchemePart.PanelBackground;
            this.expandableSplitter1.ExpandFillColor              = SystemColors.ControlDarkDark;
            this.expandableSplitter1.ExpandFillColorSchemePart    = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.ExpandLineColor              = SystemColors.ControlText;
            this.expandableSplitter1.ExpandLineColorSchemePart    = eColorSchemePart.ItemText;
            this.expandableSplitter1.GripDarkColor                = SystemColors.ControlText;
            this.expandableSplitter1.GripDarkColorSchemePart      = eColorSchemePart.ItemText;
            this.expandableSplitter1.GripLightColor               = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter1.GripLightColorSchemePart     = eColorSchemePart.BarBackground;
            this.expandableSplitter1.HotBackColor                 = Color.FromArgb(0xa4, 0xe7, 0xfb);
            this.expandableSplitter1.HotBackColor2                = Color.FromArgb(230, 0xf5, 0xf9);
            this.expandableSplitter1.HotBackColor2SchemePart      = eColorSchemePart.ItemPressedBackground2;
            this.expandableSplitter1.HotBackColorSchemePart       = eColorSchemePart.ItemPressedBackground;
            this.expandableSplitter1.HotExpandFillColor           = SystemColors.ControlDarkDark;
            this.expandableSplitter1.HotExpandFillColorSchemePart = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.HotExpandLineColor           = SystemColors.ControlText;
            this.expandableSplitter1.HotExpandLineColorSchemePart = eColorSchemePart.ItemText;
            this.expandableSplitter1.HotGripDarkColor             = SystemColors.ControlDarkDark;
            this.expandableSplitter1.HotGripDarkColorSchemePart   = eColorSchemePart.PanelBorder;
            this.expandableSplitter1.HotGripLightColor            = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter1.HotGripLightColorSchemePart  = eColorSchemePart.BarBackground;
            this.expandableSplitter1.Location                     = new Point(0x101, 0);
            this.expandableSplitter1.Name                         = "expandableSplitter1";
            this.expandableSplitter1.Size                         = new Size(3, 470);
            this.expandableSplitter1.TabIndex                     = 1;
            this.expandableSplitter1.TabStop                      = false;
            this.panel_bottom.Controls.Add(this.sendUc1);
            this.panel_bottom.Dock                                = DockStyle.Bottom;
            this.panel_bottom.Location                            = new Point(260, 0x150);
            this.panel_bottom.Name                                = "panel_bottom";
            this.panel_bottom.Size                                = new Size(0x23d, 0x86);
            this.panel_bottom.TabIndex                            = 2;
            this.expandableSplitter2.BackColor2                   = SystemColors.ControlDarkDark;
            this.expandableSplitter2.BackColor2SchemePart         = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.BackColorSchemePart          = eColorSchemePart.PanelBackground;
            this.expandableSplitter2.Dock                         = DockStyle.Bottom;
            this.expandableSplitter2.ExpandFillColor              = SystemColors.ControlDarkDark;
            this.expandableSplitter2.ExpandFillColorSchemePart    = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.ExpandLineColor              = SystemColors.ControlText;
            this.expandableSplitter2.ExpandLineColorSchemePart    = eColorSchemePart.ItemText;
            this.expandableSplitter2.GripDarkColor                = SystemColors.ControlText;
            this.expandableSplitter2.GripDarkColorSchemePart      = eColorSchemePart.ItemText;
            this.expandableSplitter2.GripLightColor               = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter2.GripLightColorSchemePart     = eColorSchemePart.BarBackground;
            this.expandableSplitter2.HotBackColor                 = Color.FromArgb(0xa4, 0xe7, 0xfb);
            this.expandableSplitter2.HotBackColor2                = Color.FromArgb(230, 0xf5, 0xf9);
            this.expandableSplitter2.HotBackColor2SchemePart      = eColorSchemePart.ItemPressedBackground2;
            this.expandableSplitter2.HotBackColorSchemePart       = eColorSchemePart.ItemPressedBackground;
            this.expandableSplitter2.HotExpandFillColor           = SystemColors.ControlDarkDark;
            this.expandableSplitter2.HotExpandFillColorSchemePart = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.HotExpandLineColor           = SystemColors.ControlText;
            this.expandableSplitter2.HotExpandLineColorSchemePart = eColorSchemePart.ItemText;
            this.expandableSplitter2.HotGripDarkColor             = SystemColors.ControlDarkDark;
            this.expandableSplitter2.HotGripDarkColorSchemePart   = eColorSchemePart.PanelBorder;
            this.expandableSplitter2.HotGripLightColor            = Color.FromArgb(0xf4, 0xf6, 0xf8);
            this.expandableSplitter2.HotGripLightColorSchemePart  = eColorSchemePart.BarBackground;
            this.expandableSplitter2.Location                     = new Point(260, 0x14d);
            this.expandableSplitter2.Name                         = "expandableSplitter2";
            this.expandableSplitter2.Size                         = new Size(0x23d, 3);
            this.expandableSplitter2.TabIndex                     = 3;
            this.expandableSplitter2.TabStop                      = false;
            this.panel_main.Controls.Add(this.receiveUc1);
            this.panel_main.Dock         = DockStyle.Fill;
            this.panel_main.Location     = new Point(260, 0);
            this.panel_main.Name         = "panel_main";
            this.panel_main.Size         = new Size(0x23d, 0x14d);
            this.panel_main.TabIndex     = 4;
            this.ipdaemon1.About         = "";
            this.ipdaemon1.InvokeThrough = null;
            this.receiveUc1.Dock         = DockStyle.Fill;
            this.receiveUc1.Location     = new Point(0, 0);
            this.receiveUc1.Name         = "receiveUc1";
            this.receiveUc1.Size         = new Size(0x23d, 0x14d);
            this.receiveUc1.TabIndex     = 0;
            this.sendUc1.Dock            = DockStyle.Fill;
            this.sendUc1.IP          = "127.0.0.1";
            this.sendUc1.Location    = new Point(0, 0);
            this.sendUc1.Name        = "sendUc1";
            this.sendUc1.Port        = 0x1a0a;
            this.sendUc1.Size        = new Size(0x23d, 0x86);
            this.sendUc1.TabIndex    = 0;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(0x341, 0x1ef);
            base.Controls.Add(this.panel_main);
            base.Controls.Add(this.expandableSplitter2);
            base.Controls.Add(this.panel_bottom);
            base.Controls.Add(this.expandableSplitter1);
            base.Controls.Add(this.panel_left);
            base.Controls.Add(this.bar1);
            base.Icon = (Icon)resources.GetObject("$this.Icon");
            base.Name = "TCPServerForm";
            this.Text = "TCPServer";
            this.panel_left.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.numericUpDown1.EndInit();
            this.bar1.EndInit();
            this.panel_bottom.ResumeLayout(false);
            this.panel_main.ResumeLayout(false);
            base.ResumeLayout(false);
        }