예제 #1
0
 private void ConfigForm_Shown(object sender, EventArgs e)
 {
     IPTextBox.Focus();
     #region SSD
     DisableMove();
     #endregion
 }
예제 #2
0
 private void ShowWindow()
 {
     this.Opacity = 1;
     this.Show();
     IPTextBox.Focus();
     PictureQRcode.Visible = false;  //隐藏二维码
 }
예제 #3
0
        private Server GetServerDetailsFromUI()
        {
            Server server = new Server();

            if (Uri.CheckHostName(server.server = IPTextBox.Text.Trim()) == UriHostNameType.Unknown)
            {
                MessageBox.Show(I18N.GetString("Invalid server address"));
                IPTextBox.Focus();
                return(null);
            }
            if (!int.TryParse(ServerPortTextBox.Text, out server.server_port))
            {
                MessageBox.Show(I18N.GetString("Illegal port number format"));
                ServerPortTextBox.Focus();
                return(null);
            }
            server.password    = PasswordTextBox.Text;
            server.method      = EncryptionSelect.Text;
            server.plugin      = PluginTextBox.Text;
            server.plugin_opts = PluginOptionsTextBox.Text;
            server.plugin_args = PluginArgumentsTextBox.Text;
            server.remarks     = RemarksTextBox.Text;
            if (!int.TryParse(TimeoutTextBox.Text, out server.timeout))
            {
                MessageBox.Show(I18N.GetString("Illegal timeout format"));
                TimeoutTextBox.Focus();
                return(null);
            }
            return(server);
        }
예제 #4
0
        private void RenderVMState()
        {
            if (_vm != null)
            {
                IPTextBox.Invoke((Action) delegate { IPTextBox.Text = _vm.InstructionPointer.ToString("X"); });
                SPTextBox.Invoke((Action) delegate { SPTextBox.Text = _vm.StackPointer.ToString("X"); });

                if (_vm.StackPointer > 0)
                {
                    var topOfStackVal = _vm.Memory[_vm.StackPointer - 1];
                    if (_lastStackPointer != _vm.StackPointer || _lastTopOfStackVal != topOfStackVal)
                    {
                        _lastStackPointer  = _vm.StackPointer;
                        _lastTopOfStackVal = topOfStackVal;

                        var stackList = new string[_vm.StackPointer];
                        for (var i = 0; i < _vm.StackPointer; i++)
                        {
                            stackList[i] = _vm.Memory[i + 1].ToString("X");
                        }

                        StackListBox.Invoke((Action) delegate { StackListBox.DataSource = stackList; });
                    }
                }
            }
        }
예제 #5
0
        private bool SaveOldSelectedServer()
        {
            try
            {
                if (_lastSelectedIndex == -1 || _lastSelectedIndex >= _modifiedConfiguration.configs.Count)
                {
                    return(true);
                }
                var server = new ServerObject {
                    v = "10"
                };

                if (Uri.CheckHostName(server.add = IPTextBox.Text.Trim()) == UriHostNameType.Unknown)
                {
                    MessageBox.Show(I18N.GetString("Invalid server address"));
                    IPTextBox.Focus();
                    return(false);
                }

                var old = _modifiedConfiguration.configs[_lastSelectedIndex];

                server.port = (int)ServerPortNum.Value;
                server.aid  = (int)AlterIdNum.Value;

                server.ps   = RemarksTextBox.Text;
                server.id   = IDTextBox.Text;
                server.net  = TPSelect.SelectedItem.ToString();
                server.type = CTSelect.SelectedItem.ToString();
                server.host = CDTextBox.Text;
                server.path = PathTextBox.Text;
                server.tls  = SecuritySelect?.SelectedItem?.ToString() ?? "";

                var localPort = (int)LocalPortNum.Value;
                var corePort  = (int)CorePortNum.Value;
                Configuration.CheckServer(server.add);
                Configuration.CheckLocalPort(localPort);

                if (old != null)
                {
                    server.group = old.group;
                }

                _modifiedConfiguration.configs[_lastSelectedIndex] = server;
                _modifiedConfiguration.localPort = localPort;
                _modifiedConfiguration.corePort  = corePort;
                return(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            return(false);
        }
예제 #6
0
        private bool SaveOldSelectedServer()
        {
            try
            {
                if (_lastSelectedIndex == -1 || _lastSelectedIndex >= _modifiedConfiguration.configs.Count)
                {
                    return(true);
                }
                Server server = new Server();

                if (Uri.CheckHostName(server.server = IPTextBox.Text.Trim()) == UriHostNameType.Unknown)
                {
                    MessageBox.Show(I18N.GetString("Invalid server address"));
                    IPTextBox.Focus();
                    return(false);
                }
                if (!int.TryParse(ServerPortTextBox.Text, out server.server_port))
                {
                    MessageBox.Show(I18N.GetString("Illegal port number format"));
                    ServerPortTextBox.Focus();
                    return(false);
                }
                server.password     = PasswordTextBox.Text;
                server.method       = EncryptionSelect.Text;
                server.use_kcp      = UseKcpCheckBox.Checked;
                server.kcp_argument = KcpArgumentTextBox.Text;
                if (!int.TryParse(KcpRemotePortTextBox.Text, out server.kcp_remote_port))
                {
                    MessageBox.Show(I18N.GetString("Illegal kcp remote port number format"));
                    ServerPortTextBox.Focus();
                    return(false);
                }
                server.remarks = RemarksTextBox.Text;
                if (!int.TryParse(TimeoutTextBox.Text, out server.timeout))
                {
                    MessageBox.Show(I18N.GetString("Illegal timeout format"));
                    TimeoutTextBox.Focus();
                    return(false);
                }
                int localPort = int.Parse(ProxyPortTextBox.Text);
                Configuration.CheckServer(server);
                Configuration.CheckLocalPort(localPort);
                _modifiedConfiguration.configs[_lastSelectedIndex] = server;
                _modifiedConfiguration.localPort = localPort;

                return(true);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            return(false);
        }
예제 #7
0
 private void OKButtonClicked(object sender, RoutedEventArgs e)
 {
     IPTextBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
     System.Net.IPAddress _ip;
     if (!System.Net.IPAddress.TryParse(IPTextBox.Text, out _ip))
     {
         IPTextBox.Style = Resources["noError"] as Style;
         IPTextBox.Style = Resources["blinkingError"] as Style;
     }
     else
     {
         DialogResult = true;
     }
 }
예제 #8
0
        void LoadContent()
        {
            //TextBox inputBox = new TextBox();
            //inputBox.OnEnterPressed += InputBoxEnterPressed;

            myGUICaretaker = JsonUtility.LoadJsonTyped("LobbyMenuGUI") as GUICaretaker;
            //myGUICaretaker = JsonUtility.LoadJson<GUICaretaker>("LobbyMenuGUI");
            //why null, whyyyyyyyyy ? do investigate pl0x. hello ylfs titta kod
            //myGUICaretaker.AddGUI(inputBox, "IpInputBox");

            JsonUtility.SaveJson("LobbyMenuGUI", myGUICaretaker);
            IPTextBox IPTextBox = myGUICaretaker.GetGUI("IpInputBox") as IPTextBox;

            IPTextBox.OnEnterPressed += InputBoxEnterPressed;

            myGUICaretaker.GetGUI <Button>("HostButton").OnClicked     += CreateGameStaet;
            myGUICaretaker.GetGUI <Button>("ConnectToNicos").OnClicked += ConnectToNicos;
        }
예제 #9
0
        private bool?CheckIPTextBox(out string address, bool isSave, bool isCopy)
        {
            address = null;
            string outAddress;

            if (Uri.CheckHostName(outAddress = IPTextBox.Text.Trim()) == UriHostNameType.Unknown)
            {
                if (!isSave && !isCopy && ServersListBox.Items.Count > 1 && I18N.GetString("New server").Equals(ServersListBox.Items[_lastSelectedIndex].ToString()))
                {
                    DialogResult result = MessageBox.Show(I18N.GetString("Whether to discard unconfigured servers"), I18N.GetString("Operation failure"), MessageBoxButtons.OKCancel);

                    if (result == DialogResult.OK)
                    {
                        return(null);
                    }
                }
                else if (isChange && !isSave && !isCopy)
                {
                    var result = MessageBox.Show(I18N.GetString("Invalid server address, Cannot automatically save or discard changes"), I18N.GetString("Auto save failed"), MessageBoxButtons.OKCancel);

                    if (result == DialogResult.Cancel)
                    {
                        return(false);
                    }
                    else
                    {
                        address = _modifiedConfiguration.configs[_lastSelectedIndex].server;
                        return(true);
                    }
                }
                else
                {
                    MessageBox.Show(I18N.GetString("Invalid server address"), I18N.GetString("Operation failure"));
                    IPTextBox.Focus();
                }
                return(false);
            }
            else
            {
                address = outAddress;
            }
            return(true);
        }
예제 #10
0
 private void CheckBoxClicked(object sender, RoutedEventArgs e)
 {
     if ((bool)passwordRequired.IsChecked)
     {
         passwordBox                 = new PasswordBox();
         passwordBox.Name            = "passwordBox";
         passwordBox.Margin          = new Thickness(3, 4, 0, -7);
         passwordBox.KeyDown        += new System.Windows.Input.KeyEventHandler(IPTextBoxKeyDown);
         passwordBox.ToolTipOpening += new ToolTipEventHandler(PasswordBoxToolTipOpening);
         passwordBox.MaxLength       = 40;
         passwordBox.MaxWidth        = 180;
         passwordGrid.Children.Add(passwordBox);
         Grid.SetColumn(passwordBox, 1);
         passwordBox.SelectAll();
         passwordBox.Focus();
     }
     else
     {
         passwordGrid.Children.Remove(passwordBox);
         passwordBox = null;
         IPTextBox.SelectAll();
         IPTextBox.Focus();
     }
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScanWindow));
     this.ipStart                       = new mRemoteNG.UI.Controls.IPTextBox();
     this.ipEnd                         = new mRemoteNG.UI.Controls.IPTextBox();
     this.lblStartIP                    = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.lblEndIP                      = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.btnScan                       = new mRemoteNG.UI.Controls.Base.NGButton();
     this.olvHosts                      = new mRemoteNG.UI.Controls.Base.NGListView();
     this.resultsMenuStrip              = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.importHTTPToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.importHTTPSToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.importRDPToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.importRloginToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.importSSH2ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.importTelnetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.importVNCToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.btnImport                     = new mRemoteNG.UI.Controls.Base.NGButton();
     this.cbProtocol                    = new mRemoteNG.UI.Controls.Base.NGComboBox();
     this.lblOnlyImport                 = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.clmHost                       = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmSSH                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmTelnet                     = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmHTTP                       = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmHTTPS                      = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmRlogin                     = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmRDP                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmVNC                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmOpenPorts                  = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmClosedPorts                = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.prgBar                        = new mRemoteNG.UI.Controls.Base.NGProgressBar();
     this.pnlScan                       = new System.Windows.Forms.Panel();
     this.numericSelectorTimeout        = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.lblTimeout                    = new System.Windows.Forms.Label();
     this.portEnd                       = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.portStart                     = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.Label2                        = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.Label1                        = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.pnlImport                     = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.olvHosts)).BeginInit();
     this.resultsMenuStrip.SuspendLayout();
     this.pnlScan.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericSelectorTimeout)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).BeginInit();
     this.pnlImport.SuspendLayout();
     this.SuspendLayout();
     //
     // ipStart
     //
     this.ipStart.Location    = new System.Drawing.Point(5, 19);
     this.ipStart.Name        = "ipStart";
     this.ipStart.Size        = new System.Drawing.Size(130, 20);
     this.ipStart.TabIndex    = 1;
     this.ipStart.ToolTipText = "";
     //
     // ipEnd
     //
     this.ipEnd.Location    = new System.Drawing.Point(155, 19);
     this.ipEnd.Name        = "ipEnd";
     this.ipEnd.Size        = new System.Drawing.Size(130, 20);
     this.ipEnd.TabIndex    = 2;
     this.ipEnd.ToolTipText = "";
     //
     // lblStartIP
     //
     this.lblStartIP.AutoSize = true;
     this.lblStartIP.Location = new System.Drawing.Point(3, 5);
     this.lblStartIP.Name     = "lblStartIP";
     this.lblStartIP.Size     = new System.Drawing.Size(46, 13);
     this.lblStartIP.TabIndex = 0;
     this.lblStartIP.Text     = "Start IP:";
     //
     // lblEndIP
     //
     this.lblEndIP.AutoSize = true;
     this.lblEndIP.Location = new System.Drawing.Point(152, 5);
     this.lblEndIP.Name     = "lblEndIP";
     this.lblEndIP.Size     = new System.Drawing.Size(42, 13);
     this.lblEndIP.TabIndex = 5;
     this.lblEndIP.Text     = "End IP:";
     //
     // btnScan
     //
     this.btnScan._mice                   = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER;
     this.btnScan.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnScan.Image                   = global::mRemoteNG.Resources.Search;
     this.btnScan.ImageAlign              = System.Drawing.ContentAlignment.MiddleRight;
     this.btnScan.Location                = new System.Drawing.Point(769, 5);
     this.btnScan.Name                    = "btnScan";
     this.btnScan.Size                    = new System.Drawing.Size(110, 55);
     this.btnScan.TabIndex                = 6;
     this.btnScan.Text                    = "&Scan";
     this.btnScan.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btnScan.UseVisualStyleBackColor = true;
     this.btnScan.Click                  += new System.EventHandler(this.btnScan_Click);
     //
     // olvHosts
     //
     this.olvHosts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.olvHosts.CellEditUseWholeCell = false;
     this.olvHosts.ContextMenuStrip     = this.resultsMenuStrip;
     this.olvHosts.Cursor        = System.Windows.Forms.Cursors.Default;
     this.olvHosts.DecorateLines = true;
     this.olvHosts.FullRowSelect = true;
     this.olvHosts.GridLines     = true;
     this.olvHosts.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.olvHosts.HideSelection = false;
     this.olvHosts.Location      = new System.Drawing.Point(12, 73);
     this.olvHosts.Name          = "olvHosts";
     this.olvHosts.ShowGroups    = false;
     this.olvHosts.Size          = new System.Drawing.Size(883, 290);
     this.olvHosts.TabIndex      = 26;
     this.olvHosts.UseCompatibleStateImageBehavior = false;
     this.olvHosts.View = System.Windows.Forms.View.Details;
     //
     // resultsMenuStrip
     //
     this.resultsMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.importHTTPToolStripMenuItem,
         this.importHTTPSToolStripMenuItem,
         this.importRDPToolStripMenuItem,
         this.importRloginToolStripMenuItem,
         this.importSSH2ToolStripMenuItem,
         this.importTelnetToolStripMenuItem,
         this.importVNCToolStripMenuItem
     });
     this.resultsMenuStrip.Name = "resultsMenuStrip";
     this.resultsMenuStrip.Size = new System.Drawing.Size(150, 158);
     //
     // importHTTPToolStripMenuItem
     //
     this.importHTTPToolStripMenuItem.Name   = "importHTTPToolStripMenuItem";
     this.importHTTPToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importHTTPToolStripMenuItem.Text   = "Import HTTP";
     this.importHTTPToolStripMenuItem.Click += new System.EventHandler(this.importHTTPToolStripMenuItem_Click);
     //
     // importHTTPSToolStripMenuItem
     //
     this.importHTTPSToolStripMenuItem.Name   = "importHTTPSToolStripMenuItem";
     this.importHTTPSToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importHTTPSToolStripMenuItem.Text   = "Import HTTPS";
     this.importHTTPSToolStripMenuItem.Click += new System.EventHandler(this.importHTTPSToolStripMenuItem_Click);
     //
     // importRDPToolStripMenuItem
     //
     this.importRDPToolStripMenuItem.Name   = "importRDPToolStripMenuItem";
     this.importRDPToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importRDPToolStripMenuItem.Text   = "Import RDP";
     this.importRDPToolStripMenuItem.Click += new System.EventHandler(this.importRDPToolStripMenuItem_Click);
     //
     // importRloginToolStripMenuItem
     //
     this.importRloginToolStripMenuItem.Name   = "importRloginToolStripMenuItem";
     this.importRloginToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importRloginToolStripMenuItem.Text   = "Import Rlogin";
     this.importRloginToolStripMenuItem.Click += new System.EventHandler(this.importRloginToolStripMenuItem_Click);
     //
     // importSSH2ToolStripMenuItem
     //
     this.importSSH2ToolStripMenuItem.Name   = "importSSH2ToolStripMenuItem";
     this.importSSH2ToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importSSH2ToolStripMenuItem.Text   = "Import SSH2";
     this.importSSH2ToolStripMenuItem.Click += new System.EventHandler(this.importSSH2ToolStripMenuItem_Click);
     //
     // importTelnetToolStripMenuItem
     //
     this.importTelnetToolStripMenuItem.Name   = "importTelnetToolStripMenuItem";
     this.importTelnetToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importTelnetToolStripMenuItem.Text   = "Import Telnet";
     this.importTelnetToolStripMenuItem.Click += new System.EventHandler(this.importTelnetToolStripMenuItem_Click);
     //
     // importVNCToolStripMenuItem
     //
     this.importVNCToolStripMenuItem.Name   = "importVNCToolStripMenuItem";
     this.importVNCToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importVNCToolStripMenuItem.Text   = "Import VNC";
     this.importVNCToolStripMenuItem.Click += new System.EventHandler(this.importVNCToolStripMenuItem_Click);
     //
     // btnImport
     //
     this.btnImport._mice    = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER;
     this.btnImport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImport.Location = new System.Drawing.Point(800, 5);
     this.btnImport.Name     = "btnImport";
     this.btnImport.Size     = new System.Drawing.Size(80, 40);
     this.btnImport.TabIndex = 8;
     this.btnImport.Text     = "&Import";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // cbProtocol
     //
     this.cbProtocol._mice             = mRemoteNG.UI.Controls.Base.NGComboBox.MouseState.HOVER;
     this.cbProtocol.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cbProtocol.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProtocol.FormattingEnabled = true;
     this.cbProtocol.Items.AddRange(new object[] {
         "SSH2",
         "Telnet",
         "HTTP",
         "HTTPS",
         "Rlogin",
         "RDP",
         "VNC"
     });
     this.cbProtocol.Location = new System.Drawing.Point(5, 25);
     this.cbProtocol.Name     = "cbProtocol";
     this.cbProtocol.Size     = new System.Drawing.Size(122, 21);
     this.cbProtocol.TabIndex = 7;
     //
     // lblOnlyImport
     //
     this.lblOnlyImport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.lblOnlyImport.AutoSize = true;
     this.lblOnlyImport.Location = new System.Drawing.Point(2, 5);
     this.lblOnlyImport.Name     = "lblOnlyImport";
     this.lblOnlyImport.Size     = new System.Drawing.Size(104, 13);
     this.lblOnlyImport.TabIndex = 1;
     this.lblOnlyImport.Text     = "Protocol to import:";
     //
     // clmHost
     //
     this.clmHost.AspectName     = "HostIPorName";
     this.clmHost.FillsFreeSpace = true;
     this.clmHost.Text           = "Hostname/IP";
     this.clmHost.Width          = 130;
     //
     // clmSSH
     //
     this.clmSSH.AspectName = "SshName";
     this.clmSSH.Text       = "SSH";
     this.clmSSH.Width      = 50;
     //
     // clmTelnet
     //
     this.clmTelnet.AspectName = "TelnetName";
     this.clmTelnet.Text       = "Telnet";
     this.clmTelnet.Width      = 50;
     //
     // clmHTTP
     //
     this.clmHTTP.AspectName = "HttpName";
     this.clmHTTP.Text       = "HTTP";
     this.clmHTTP.Width      = 50;
     //
     // clmHTTPS
     //
     this.clmHTTPS.AspectName = "HttpsName";
     this.clmHTTPS.Text       = "HTTPS";
     this.clmHTTPS.Width      = 50;
     //
     // clmRlogin
     //
     this.clmRlogin.AspectName = "RloginName";
     this.clmRlogin.Text       = "Rlogin";
     this.clmRlogin.Width      = 50;
     //
     // clmRDP
     //
     this.clmRDP.AspectName = "RdpName";
     this.clmRDP.Text       = "RDP";
     this.clmRDP.Width      = 50;
     //
     // clmVNC
     //
     this.clmVNC.AspectName = "VncName";
     this.clmVNC.Text       = "VNC";
     this.clmVNC.Width      = 50;
     //
     // clmOpenPorts
     //
     this.clmOpenPorts.AspectName     = "OpenPortsName";
     this.clmOpenPorts.FillsFreeSpace = true;
     this.clmOpenPorts.Text           = "Open Ports";
     this.clmOpenPorts.Width          = 150;
     //
     // clmClosedPorts
     //
     this.clmClosedPorts.AspectName     = "ClosedPortsName";
     this.clmClosedPorts.FillsFreeSpace = true;
     this.clmClosedPorts.Text           = "Closed Ports";
     this.clmClosedPorts.Width          = 150;
     //
     // prgBar
     //
     this.prgBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.prgBar.Location = new System.Drawing.Point(5, 45);
     this.prgBar.Name     = "prgBar";
     this.prgBar.Size     = new System.Drawing.Size(760, 15);
     this.prgBar.Step     = 1;
     this.prgBar.TabIndex = 28;
     //
     // pnlScan
     //
     this.pnlScan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlScan.Controls.Add(this.numericSelectorTimeout);
     this.pnlScan.Controls.Add(this.lblTimeout);
     this.pnlScan.Controls.Add(this.portEnd);
     this.pnlScan.Controls.Add(this.portStart);
     this.pnlScan.Controls.Add(this.prgBar);
     this.pnlScan.Controls.Add(this.Label2);
     this.pnlScan.Controls.Add(this.lblStartIP);
     this.pnlScan.Controls.Add(this.lblEndIP);
     this.pnlScan.Controls.Add(this.ipStart);
     this.pnlScan.Controls.Add(this.btnScan);
     this.pnlScan.Controls.Add(this.Label1);
     this.pnlScan.Controls.Add(this.ipEnd);
     this.pnlScan.Location = new System.Drawing.Point(12, 5);
     this.pnlScan.Name     = "pnlScan";
     this.pnlScan.Size     = new System.Drawing.Size(883, 65);
     this.pnlScan.TabIndex = 18;
     //
     // numericSelectorTimeout
     //
     this.numericSelectorTimeout.Location = new System.Drawing.Point(600, 17);
     this.numericSelectorTimeout.Maximum  = new decimal(new int[] {
         2147482,
         0,
         0,
         0
     });
     this.numericSelectorTimeout.Name     = "numericSelectorTimeout";
     this.numericSelectorTimeout.Size     = new System.Drawing.Size(67, 22);
     this.numericSelectorTimeout.TabIndex = 5;
     //
     // lblTimeout
     //
     this.lblTimeout.AutoSize = true;
     this.lblTimeout.Location = new System.Drawing.Point(597, 1);
     this.lblTimeout.Name     = "lblTimeout";
     this.lblTimeout.Size     = new System.Drawing.Size(102, 13);
     this.lblTimeout.TabIndex = 16;
     this.lblTimeout.Text     = "Timeout (seconds):";
     //
     // portEnd
     //
     this.portEnd.Location = new System.Drawing.Point(490, 17);
     this.portEnd.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portEnd.Name     = "portEnd";
     this.portEnd.Size     = new System.Drawing.Size(67, 22);
     this.portEnd.TabIndex = 4;
     this.portEnd.Enter   += new System.EventHandler(this.portEnd_Enter);
     //
     // portStart
     //
     this.portStart.Location = new System.Drawing.Point(375, 17);
     this.portStart.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portStart.Name     = "portStart";
     this.portStart.Size     = new System.Drawing.Size(67, 22);
     this.portStart.TabIndex = 3;
     this.portStart.Enter   += new System.EventHandler(this.portStart_Enter);
     //
     // Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(487, 1);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(54, 13);
     this.Label2.TabIndex = 10;
     this.Label2.Text     = "End Port:";
     //
     // Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(372, 1);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(58, 13);
     this.Label1.TabIndex = 0;
     this.Label1.Text     = "Start Port:";
     //
     // pnlImport
     //
     this.pnlImport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlImport.Controls.Add(this.btnImport);
     this.pnlImport.Controls.Add(this.lblOnlyImport);
     this.pnlImport.Controls.Add(this.cbProtocol);
     this.pnlImport.Location = new System.Drawing.Point(12, 364);
     this.pnlImport.Name     = "pnlImport";
     this.pnlImport.Size     = new System.Drawing.Size(883, 50);
     this.pnlImport.TabIndex = 102;
     //
     // PortScanWindow
     //
     this.AcceptButton = this.btnImport;
     this.AutoScroll   = true;
     this.ClientSize   = new System.Drawing.Size(908, 421);
     this.Controls.Add(this.pnlImport);
     this.Controls.Add(this.olvHosts);
     this.Controls.Add(this.pnlScan);
     this.Font        = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(924, 460);
     this.Name        = "PortScanWindow";
     this.TabText     = "Port Scan";
     this.Text        = "Port Scan";
     this.Load       += new System.EventHandler(this.PortScan_Load);
     ((System.ComponentModel.ISupportInitialize)(this.olvHosts)).EndInit();
     this.resultsMenuStrip.ResumeLayout(false);
     this.pnlScan.ResumeLayout(false);
     this.pnlScan.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericSelectorTimeout)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).EndInit();
     this.pnlImport.ResumeLayout(false);
     this.pnlImport.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #12
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScanWindow));
     this.ipStart                       = new mRemoteNG.UI.Controls.IPTextBox();
     this.ipEnd                         = new mRemoteNG.UI.Controls.IPTextBox();
     this.lblStartIP                    = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.lblEndIP                      = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.olvHosts                      = new mRemoteNG.UI.Controls.Base.NGListView();
     this.resultsMenuStrip              = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.importHTTPToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.importHTTPSToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.importRDPToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.importRloginToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.importSSH2ToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.importTelnetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.importVNCToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.btnImport                     = new mRemoteNG.UI.Controls.Base.NGButton();
     this.cbProtocol                    = new mRemoteNG.UI.Controls.Base.NGComboBox();
     this.lblOnlyImport                 = new mRemoteNG.UI.Controls.Base.NGLabel();
     this.clmHost                       = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmSSH                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmTelnet                     = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmHTTP                       = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmHTTPS                      = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmRlogin                     = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmRDP                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmVNC                        = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmOpenPorts                  = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.clmClosedPorts                = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
     this.prgBar                        = new mRemoteNG.UI.Controls.Base.NGProgressBar();
     this.numericSelectorTimeout        = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.lblTimeout                    = new System.Windows.Forms.Label();
     this.portEnd                       = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.portStart                     = new mRemoteNG.UI.Controls.Base.NGNumericUpDown();
     this.pnlIp                         = new System.Windows.Forms.TableLayoutPanel();
     this.btnScan                       = new mRemoteNG.UI.Controls.Base.NGButton();
     this.ngCheckFirstPort              = new mRemoteNG.UI.Controls.Base.NGCheckBox();
     this.ngCheckLastPort               = new mRemoteNG.UI.Controls.Base.NGCheckBox();
     this.pnlImport                     = new System.Windows.Forms.TableLayoutPanel();
     this.pnlMain                       = new System.Windows.Forms.TableLayoutPanel();
     this.portScanToolTip               = new System.Windows.Forms.ToolTip(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.olvHosts)).BeginInit();
     this.resultsMenuStrip.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericSelectorTimeout)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).BeginInit();
     this.pnlIp.SuspendLayout();
     this.pnlImport.SuspendLayout();
     this.pnlMain.SuspendLayout();
     this.SuspendLayout();
     //
     // ipStart
     //
     this.ipStart.Font        = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ipStart.Location    = new System.Drawing.Point(133, 3);
     this.ipStart.Name        = "ipStart";
     this.ipStart.Size        = new System.Drawing.Size(124, 18);
     this.ipStart.TabIndex    = 1;
     this.ipStart.ToolTipText = "";
     //
     // ipEnd
     //
     this.ipEnd.Font        = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ipEnd.Location    = new System.Drawing.Point(133, 27);
     this.ipEnd.Name        = "ipEnd";
     this.ipEnd.Size        = new System.Drawing.Size(124, 18);
     this.ipEnd.TabIndex    = 2;
     this.ipEnd.ToolTipText = "";
     //
     // lblStartIP
     //
     this.lblStartIP.AutoSize  = true;
     this.lblStartIP.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblStartIP.Location  = new System.Drawing.Point(3, 0);
     this.lblStartIP.Name      = "lblStartIP";
     this.lblStartIP.Size      = new System.Drawing.Size(124, 24);
     this.lblStartIP.TabIndex  = 0;
     this.lblStartIP.Text      = "First IP";
     this.lblStartIP.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblEndIP
     //
     this.lblEndIP.AutoSize  = true;
     this.lblEndIP.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblEndIP.Location  = new System.Drawing.Point(3, 24);
     this.lblEndIP.Name      = "lblEndIP";
     this.lblEndIP.Size      = new System.Drawing.Size(124, 24);
     this.lblEndIP.TabIndex  = 5;
     this.lblEndIP.Text      = "Last IP";
     this.lblEndIP.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // olvHosts
     //
     this.olvHosts.CellEditUseWholeCell = false;
     this.olvHosts.ContextMenuStrip     = this.resultsMenuStrip;
     this.olvHosts.Cursor        = System.Windows.Forms.Cursors.Default;
     this.olvHosts.DecorateLines = true;
     this.olvHosts.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.olvHosts.FullRowSelect = true;
     this.olvHosts.GridLines     = true;
     this.olvHosts.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.olvHosts.HideSelection = false;
     this.olvHosts.Location      = new System.Drawing.Point(3, 168);
     this.olvHosts.Name          = "olvHosts";
     this.olvHosts.ShowGroups    = false;
     this.olvHosts.Size          = new System.Drawing.Size(878, 230);
     this.olvHosts.TabIndex      = 26;
     this.olvHosts.UseCompatibleStateImageBehavior = false;
     this.olvHosts.View = System.Windows.Forms.View.Details;
     //
     // resultsMenuStrip
     //
     this.resultsMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.importHTTPToolStripMenuItem,
         this.importHTTPSToolStripMenuItem,
         this.importRDPToolStripMenuItem,
         this.importRloginToolStripMenuItem,
         this.importSSH2ToolStripMenuItem,
         this.importTelnetToolStripMenuItem,
         this.importVNCToolStripMenuItem
     });
     this.resultsMenuStrip.Name = "resultsMenuStrip";
     this.resultsMenuStrip.Size = new System.Drawing.Size(150, 158);
     //
     // importHTTPToolStripMenuItem
     //
     this.importHTTPToolStripMenuItem.Name   = "importHTTPToolStripMenuItem";
     this.importHTTPToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importHTTPToolStripMenuItem.Text   = "Import HTTP";
     this.importHTTPToolStripMenuItem.Click += new System.EventHandler(this.importHTTPToolStripMenuItem_Click);
     //
     // importHTTPSToolStripMenuItem
     //
     this.importHTTPSToolStripMenuItem.Name   = "importHTTPSToolStripMenuItem";
     this.importHTTPSToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importHTTPSToolStripMenuItem.Text   = "Import HTTPS";
     this.importHTTPSToolStripMenuItem.Click += new System.EventHandler(this.importHTTPSToolStripMenuItem_Click);
     //
     // importRDPToolStripMenuItem
     //
     this.importRDPToolStripMenuItem.Name   = "importRDPToolStripMenuItem";
     this.importRDPToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importRDPToolStripMenuItem.Text   = "Import RDP";
     this.importRDPToolStripMenuItem.Click += new System.EventHandler(this.importRDPToolStripMenuItem_Click);
     //
     // importRloginToolStripMenuItem
     //
     this.importRloginToolStripMenuItem.Name   = "importRloginToolStripMenuItem";
     this.importRloginToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importRloginToolStripMenuItem.Text   = "Import Rlogin";
     this.importRloginToolStripMenuItem.Click += new System.EventHandler(this.importRloginToolStripMenuItem_Click);
     //
     // importSSH2ToolStripMenuItem
     //
     this.importSSH2ToolStripMenuItem.Name   = "importSSH2ToolStripMenuItem";
     this.importSSH2ToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importSSH2ToolStripMenuItem.Text   = "Import SSH2";
     this.importSSH2ToolStripMenuItem.Click += new System.EventHandler(this.importSSH2ToolStripMenuItem_Click);
     //
     // importTelnetToolStripMenuItem
     //
     this.importTelnetToolStripMenuItem.Name   = "importTelnetToolStripMenuItem";
     this.importTelnetToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importTelnetToolStripMenuItem.Text   = "Import Telnet";
     this.importTelnetToolStripMenuItem.Click += new System.EventHandler(this.importTelnetToolStripMenuItem_Click);
     //
     // importVNCToolStripMenuItem
     //
     this.importVNCToolStripMenuItem.Name   = "importVNCToolStripMenuItem";
     this.importVNCToolStripMenuItem.Size   = new System.Drawing.Size(149, 22);
     this.importVNCToolStripMenuItem.Text   = "Import VNC";
     this.importVNCToolStripMenuItem.Click += new System.EventHandler(this.importVNCToolStripMenuItem_Click);
     //
     // btnImport
     //
     this.btnImport._mice    = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER;
     this.btnImport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImport.Location = new System.Drawing.Point(765, 27);
     this.btnImport.Name     = "btnImport";
     this.btnImport.Size     = new System.Drawing.Size(110, 24);
     this.btnImport.TabIndex = 8;
     this.btnImport.Text     = "&Import";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // cbProtocol
     //
     this.cbProtocol._mice             = mRemoteNG.UI.Controls.Base.NGComboBox.MouseState.HOVER;
     this.cbProtocol.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.cbProtocol.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProtocol.FormattingEnabled = true;
     this.cbProtocol.Items.AddRange(new object[] {
         "SSH2",
         "Telnet",
         "HTTP",
         "HTTPS",
         "Rlogin",
         "RDP",
         "VNC"
     });
     this.cbProtocol.Location = new System.Drawing.Point(3, 27);
     this.cbProtocol.Name     = "cbProtocol";
     this.cbProtocol.Size     = new System.Drawing.Size(144, 21);
     this.cbProtocol.TabIndex = 7;
     //
     // lblOnlyImport
     //
     this.lblOnlyImport.AutoSize  = true;
     this.lblOnlyImport.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblOnlyImport.Location  = new System.Drawing.Point(3, 0);
     this.lblOnlyImport.Name      = "lblOnlyImport";
     this.lblOnlyImport.Size      = new System.Drawing.Size(144, 24);
     this.lblOnlyImport.TabIndex  = 1;
     this.lblOnlyImport.Text      = "Protocol to import";
     this.lblOnlyImport.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // clmHost
     //
     this.clmHost.AspectName     = "HostIPorName";
     this.clmHost.FillsFreeSpace = true;
     this.clmHost.Text           = "Hostname/IP";
     this.clmHost.Width          = 130;
     //
     // clmSSH
     //
     this.clmSSH.AspectName = "SshName";
     this.clmSSH.Text       = "SSH";
     this.clmSSH.Width      = 50;
     //
     // clmTelnet
     //
     this.clmTelnet.AspectName = "TelnetName";
     this.clmTelnet.Text       = "Telnet";
     this.clmTelnet.Width      = 50;
     //
     // clmHTTP
     //
     this.clmHTTP.AspectName = "HttpName";
     this.clmHTTP.Text       = "HTTP";
     this.clmHTTP.Width      = 50;
     //
     // clmHTTPS
     //
     this.clmHTTPS.AspectName = "HttpsName";
     this.clmHTTPS.Text       = "HTTPS";
     this.clmHTTPS.Width      = 50;
     //
     // clmRlogin
     //
     this.clmRlogin.AspectName = "RloginName";
     this.clmRlogin.Text       = "Rlogin";
     this.clmRlogin.Width      = 50;
     //
     // clmRDP
     //
     this.clmRDP.AspectName = "RdpName";
     this.clmRDP.Text       = "RDP";
     this.clmRDP.Width      = 50;
     //
     // clmVNC
     //
     this.clmVNC.AspectName = "VncName";
     this.clmVNC.Text       = "VNC";
     this.clmVNC.Width      = 50;
     //
     // clmOpenPorts
     //
     this.clmOpenPorts.AspectName     = "OpenPortsName";
     this.clmOpenPorts.FillsFreeSpace = true;
     this.clmOpenPorts.Text           = "Open Ports";
     this.clmOpenPorts.Width          = 150;
     //
     // clmClosedPorts
     //
     this.clmClosedPorts.AspectName     = "ClosedPortsName";
     this.clmClosedPorts.FillsFreeSpace = true;
     this.clmClosedPorts.Text           = "Closed Ports";
     this.clmClosedPorts.Width          = 150;
     //
     // prgBar
     //
     this.prgBar.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.prgBar.Location = new System.Drawing.Point(3, 138);
     this.prgBar.Name     = "prgBar";
     this.prgBar.Size     = new System.Drawing.Size(878, 24);
     this.prgBar.Step     = 1;
     this.prgBar.TabIndex = 28;
     //
     // numericSelectorTimeout
     //
     this.numericSelectorTimeout.Location = new System.Drawing.Point(133, 99);
     this.numericSelectorTimeout.Maximum  = new decimal(new int[] {
         2147482,
         0,
         0,
         0
     });
     this.numericSelectorTimeout.Name     = "numericSelectorTimeout";
     this.numericSelectorTimeout.Size     = new System.Drawing.Size(67, 22);
     this.numericSelectorTimeout.TabIndex = 5;
     this.numericSelectorTimeout.Value    = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     //
     // lblTimeout
     //
     this.lblTimeout.AutoSize  = true;
     this.lblTimeout.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.lblTimeout.Location  = new System.Drawing.Point(3, 96);
     this.lblTimeout.Name      = "lblTimeout";
     this.lblTimeout.Size      = new System.Drawing.Size(124, 33);
     this.lblTimeout.TabIndex  = 16;
     this.lblTimeout.Text      = "Timeout [seconds]";
     this.lblTimeout.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // portEnd
     //
     this.portEnd.Enabled  = false;
     this.portEnd.Location = new System.Drawing.Point(133, 75);
     this.portEnd.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portEnd.Name     = "portEnd";
     this.portEnd.Size     = new System.Drawing.Size(67, 22);
     this.portEnd.TabIndex = 4;
     this.portScanToolTip.SetToolTip(this.portEnd, global::mRemoteNG.Language.strPortScanSinglePort);
     this.portEnd.Value = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portEnd.Enter += new System.EventHandler(this.portEnd_Enter);
     //
     // portStart
     //
     this.portStart.Enabled  = false;
     this.portStart.Location = new System.Drawing.Point(133, 51);
     this.portStart.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portStart.Name     = "portStart";
     this.portStart.Size     = new System.Drawing.Size(67, 22);
     this.portStart.TabIndex = 3;
     this.portScanToolTip.SetToolTip(this.portStart, global::mRemoteNG.Language.strPortScanSinglePort);
     this.portStart.Enter += new System.EventHandler(this.portStart_Enter);
     //
     // pnlIp
     //
     this.pnlIp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlIp.ColumnCount = 3;
     this.pnlIp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
     this.pnlIp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F));
     this.pnlIp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.pnlIp.Controls.Add(this.lblStartIP, 0, 0);
     this.pnlIp.Controls.Add(this.ipEnd, 1, 1);
     this.pnlIp.Controls.Add(this.ipStart, 1, 0);
     this.pnlIp.Controls.Add(this.lblEndIP, 0, 1);
     this.pnlIp.Controls.Add(this.portStart, 1, 2);
     this.pnlIp.Controls.Add(this.portEnd, 1, 3);
     this.pnlIp.Controls.Add(this.lblTimeout, 0, 4);
     this.pnlIp.Controls.Add(this.numericSelectorTimeout, 1, 4);
     this.pnlIp.Controls.Add(this.btnScan, 2, 4);
     this.pnlIp.Controls.Add(this.ngCheckFirstPort, 0, 2);
     this.pnlIp.Controls.Add(this.ngCheckLastPort, 0, 3);
     this.pnlIp.Location = new System.Drawing.Point(3, 3);
     this.pnlIp.Name     = "pnlIp";
     this.pnlIp.RowCount = 5;
     this.pnlIp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlIp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlIp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlIp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlIp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlIp.Size     = new System.Drawing.Size(878, 129);
     this.pnlIp.TabIndex = 103;
     //
     // btnScan
     //
     this.btnScan._mice                   = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER;
     this.btnScan.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnScan.Image                   = global::mRemoteNG.Resources.Search;
     this.btnScan.ImageAlign              = System.Drawing.ContentAlignment.MiddleRight;
     this.btnScan.Location                = new System.Drawing.Point(765, 99);
     this.btnScan.Name                    = "btnScan";
     this.btnScan.Size                    = new System.Drawing.Size(110, 24);
     this.btnScan.TabIndex                = 6;
     this.btnScan.Text                    = "&Scan";
     this.btnScan.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btnScan.UseVisualStyleBackColor = true;
     this.btnScan.Click                  += new System.EventHandler(this.btnScan_Click);
     //
     // ngCheckFirstPort
     //
     this.ngCheckFirstPort._mice    = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER;
     this.ngCheckFirstPort.AutoSize = true;
     this.ngCheckFirstPort.Location = new System.Drawing.Point(3, 51);
     this.ngCheckFirstPort.Name     = "ngCheckFirstPort";
     this.ngCheckFirstPort.Size     = new System.Drawing.Size(72, 17);
     this.ngCheckFirstPort.TabIndex = 17;
     this.ngCheckFirstPort.Text     = "First Port";
     this.portScanToolTip.SetToolTip(this.ngCheckFirstPort, global::mRemoteNG.Language.strPortScanSinglePort);
     this.ngCheckFirstPort.UseVisualStyleBackColor = true;
     this.ngCheckFirstPort.CheckedChanged         += new System.EventHandler(this.NgCheckFirstPort_CheckedChanged);
     //
     // ngCheckLastPort
     //
     this.ngCheckLastPort._mice    = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER;
     this.ngCheckLastPort.AutoSize = true;
     this.ngCheckLastPort.Location = new System.Drawing.Point(3, 75);
     this.ngCheckLastPort.Name     = "ngCheckLastPort";
     this.ngCheckLastPort.Size     = new System.Drawing.Size(70, 17);
     this.ngCheckLastPort.TabIndex = 18;
     this.ngCheckLastPort.Text     = "Last Port";
     this.portScanToolTip.SetToolTip(this.ngCheckLastPort, global::mRemoteNG.Language.strPortScanSinglePort);
     this.ngCheckLastPort.UseVisualStyleBackColor = true;
     this.ngCheckLastPort.CheckedChanged         += new System.EventHandler(this.NgCheckLastPort_CheckedChanged);
     //
     // pnlImport
     //
     this.pnlImport.ColumnCount = 2;
     this.pnlImport.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
     this.pnlImport.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.pnlImport.Controls.Add(this.lblOnlyImport, 0, 0);
     this.pnlImport.Controls.Add(this.cbProtocol, 0, 1);
     this.pnlImport.Controls.Add(this.btnImport, 1, 1);
     this.pnlImport.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlImport.Location = new System.Drawing.Point(3, 404);
     this.pnlImport.Name     = "pnlImport";
     this.pnlImport.RowCount = 2;
     this.pnlImport.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlImport.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F));
     this.pnlImport.Size     = new System.Drawing.Size(878, 54);
     this.pnlImport.TabIndex = 104;
     //
     // pnlMain
     //
     this.pnlMain.ColumnCount = 1;
     this.pnlMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.pnlMain.Controls.Add(this.pnlIp, 0, 0);
     this.pnlMain.Controls.Add(this.prgBar, 0, 1);
     this.pnlMain.Controls.Add(this.pnlImport, 0, 3);
     this.pnlMain.Controls.Add(this.olvHosts, 0, 2);
     this.pnlMain.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlMain.Location = new System.Drawing.Point(0, 0);
     this.pnlMain.Name     = "pnlMain";
     this.pnlMain.RowCount = 4;
     this.pnlMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 135F));
     this.pnlMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
     this.pnlMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.pnlMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F));
     this.pnlMain.Size     = new System.Drawing.Size(884, 461);
     this.pnlMain.TabIndex = 105;
     //
     // PortScanWindow
     //
     this.AcceptButton        = this.btnImport;
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.AutoScroll          = true;
     this.ClientSize          = new System.Drawing.Size(884, 461);
     this.Controls.Add(this.pnlMain);
     this.Font    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon    = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name    = "PortScanWindow";
     this.TabText = "Port Scan";
     this.Text    = "Port Scan";
     this.Load   += new System.EventHandler(this.PortScan_Load);
     ((System.ComponentModel.ISupportInitialize)(this.olvHosts)).EndInit();
     this.resultsMenuStrip.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericSelectorTimeout)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).EndInit();
     this.pnlIp.ResumeLayout(false);
     this.pnlIp.PerformLayout();
     this.pnlImport.ResumeLayout(false);
     this.pnlImport.PerformLayout();
     this.pnlMain.ResumeLayout(false);
     this.ResumeLayout(false);
 }
예제 #13
0
 private void ShowWindow()
 {
     Opacity = 1;
     Show();
     IPTextBox.Focus();
 }
예제 #14
0
 private void InitializeComponent()
 {
     RTUbutton     = new System.Windows.Forms.Button();
     label8        = new System.Windows.Forms.Label();
     ComSelect     = new System.Windows.Forms.ComboBox();
     TCPButton     = new System.Windows.Forms.Button();
     groupBox1     = new System.Windows.Forms.GroupBox();
     label4        = new System.Windows.Forms.Label();
     addressSelect = new System.Windows.Forms.ComboBox();
     paritySelect  = new System.Windows.Forms.ComboBox();
     label3        = new System.Windows.Forms.Label();
     stopSelect    = new System.Windows.Forms.ComboBox();
     label2        = new System.Windows.Forms.Label();
     label1        = new System.Windows.Forms.Label();
     baudSelect    = new System.Windows.Forms.ComboBox();
     groupBox2     = new System.Windows.Forms.GroupBox();
     PortNoTextBox = new System.Windows.Forms.TextBox();
     ipTextBox1    = new iptb.IPTextBox();
     label6        = new System.Windows.Forms.Label();
     label7        = new System.Windows.Forms.Label();
     groupBox1.SuspendLayout();
     groupBox2.SuspendLayout();
     SuspendLayout();
     RTUbutton.Location = new System.Drawing.Point(12, 183);
     RTUbutton.Name     = "RTUbutton";
     RTUbutton.Size     = new System.Drawing.Size(85, 23);
     RTUbutton.TabIndex = 0;
     RTUbutton.Text     = "RTU";
     RTUbutton.UseVisualStyleBackColor = true;
     RTUbutton.Click                  += new System.EventHandler(RTUbutton_Click);
     label8.AutoSize                   = true;
     label8.Location                   = new System.Drawing.Point(6, 26);
     label8.Name                       = "label8";
     label8.Size                       = new System.Drawing.Size(30, 12);
     label8.TabIndex                   = 14;
     label8.Text                       = "COM";
     ComSelect.FormattingEnabled       = true;
     ComSelect.Location                = new System.Drawing.Point(59, 23);
     ComSelect.Name                    = "ComSelect";
     ComSelect.Size                    = new System.Drawing.Size(121, 20);
     ComSelect.Sorted                  = true;
     ComSelect.TabIndex                = 13;
     TCPButton.Location                = new System.Drawing.Point(226, 183);
     TCPButton.Name                    = "TCPButton";
     TCPButton.Size                    = new System.Drawing.Size(85, 23);
     TCPButton.TabIndex                = 16;
     TCPButton.Text                    = "TCP";
     TCPButton.UseVisualStyleBackColor = true;
     TCPButton.Click                  += new System.EventHandler(TCPButton_Click);
     groupBox1.Controls.Add(label4);
     groupBox1.Controls.Add(addressSelect);
     groupBox1.Controls.Add(paritySelect);
     groupBox1.Controls.Add(label3);
     groupBox1.Controls.Add(stopSelect);
     groupBox1.Controls.Add(label2);
     groupBox1.Controls.Add(label1);
     groupBox1.Controls.Add(baudSelect);
     groupBox1.Controls.Add(ComSelect);
     groupBox1.Controls.Add(label8);
     groupBox1.Location = new System.Drawing.Point(11, 12);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(209, 165);
     groupBox1.TabIndex = 17;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Serial";
     label4.AutoSize    = true;
     label4.Location    = new System.Drawing.Point(6, 134);
     label4.Name        = "label4";
     label4.Size        = new System.Drawing.Size(47, 12);
     label4.TabIndex    = 22;
     label4.Text        = "Address";
     addressSelect.FormattingEnabled = true;
     addressSelect.Items.AddRange(new object[9]
     {
         "1",
         "2",
         "3",
         "4",
         "5",
         "6",
         "7",
         "8",
         "9"
     });
     addressSelect.Location         = new System.Drawing.Point(59, 131);
     addressSelect.Name             = "addressSelect";
     addressSelect.Size             = new System.Drawing.Size(121, 20);
     addressSelect.TabIndex         = 21;
     paritySelect.FormattingEnabled = true;
     paritySelect.Items.AddRange(new object[3]
     {
         "None",
         "Odd",
         "Even"
     });
     paritySelect.Location        = new System.Drawing.Point(59, 105);
     paritySelect.Name            = "paritySelect";
     paritySelect.Size            = new System.Drawing.Size(121, 20);
     paritySelect.TabIndex        = 20;
     label3.AutoSize              = true;
     label3.Location              = new System.Drawing.Point(6, 108);
     label3.Name                  = "label3";
     label3.Size                  = new System.Drawing.Size(34, 12);
     label3.TabIndex              = 19;
     label3.Text                  = "parity";
     stopSelect.FormattingEnabled = true;
     stopSelect.Items.AddRange(new object[2]
     {
         "1 stop",
         "2 stop"
     });
     stopSelect.Location          = new System.Drawing.Point(59, 77);
     stopSelect.Name              = "stopSelect";
     stopSelect.Size              = new System.Drawing.Size(121, 20);
     stopSelect.TabIndex          = 18;
     label2.AutoSize              = true;
     label2.Location              = new System.Drawing.Point(6, 80);
     label2.Name                  = "label2";
     label2.Size                  = new System.Drawing.Size(27, 12);
     label2.TabIndex              = 17;
     label2.Text                  = "stop";
     label1.AutoSize              = true;
     label1.Location              = new System.Drawing.Point(7, 52);
     label1.Name                  = "label1";
     label1.Size                  = new System.Drawing.Size(29, 12);
     label1.TabIndex              = 16;
     label1.Text                  = "baud";
     baudSelect.FormattingEnabled = true;
     baudSelect.Items.AddRange(new object[5]
     {
         "4800",
         "9600",
         "19200",
         "38400",
         "57600"
     });
     baudSelect.Location = new System.Drawing.Point(59, 49);
     baudSelect.Name     = "baudSelect";
     baudSelect.Size     = new System.Drawing.Size(121, 20);
     baudSelect.TabIndex = 15;
     groupBox2.Controls.Add(PortNoTextBox);
     groupBox2.Controls.Add(ipTextBox1);
     groupBox2.Controls.Add(label6);
     groupBox2.Controls.Add(label7);
     groupBox2.Location       = new System.Drawing.Point(226, 12);
     groupBox2.Name           = "groupBox2";
     groupBox2.Size           = new System.Drawing.Size(212, 165);
     groupBox2.TabIndex       = 18;
     groupBox2.TabStop        = false;
     groupBox2.Text           = "TCP";
     PortNoTextBox.Location   = new System.Drawing.Point(55, 47);
     PortNoTextBox.Name       = "PortNoTextBox";
     PortNoTextBox.Size       = new System.Drawing.Size(59, 19);
     PortNoTextBox.TabIndex   = 22;
     PortNoTextBox.Text       = "502";
     ipTextBox1.Location      = new System.Drawing.Point(54, 23);
     ipTextBox1.Name          = "ipTextBox1";
     ipTextBox1.Size          = new System.Drawing.Size(128, 18);
     ipTextBox1.TabIndex      = 21;
     ipTextBox1.ToolTipText   = "";
     label6.AutoSize          = true;
     label6.Location          = new System.Drawing.Point(7, 52);
     label6.Name              = "label6";
     label6.Size              = new System.Drawing.Size(42, 12);
     label6.TabIndex          = 16;
     label6.Text              = "PortNo.";
     label7.AutoSize          = true;
     label7.Location          = new System.Drawing.Point(6, 26);
     label7.Name              = "label7";
     label7.Size              = new System.Drawing.Size(15, 12);
     label7.TabIndex          = 14;
     label7.Text              = "IP";
     base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize          = new System.Drawing.Size(452, 220);
     base.Controls.Add(groupBox2);
     base.Controls.Add(groupBox1);
     base.Controls.Add(TCPButton);
     base.Controls.Add(RTUbutton);
     base.Name          = "TopForm";
     base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     Text       = "Modbus test tool";
     base.Load += new System.EventHandler(TopForm_Load);
     groupBox1.ResumeLayout(performLayout: false);
     groupBox1.PerformLayout();
     groupBox2.ResumeLayout(performLayout: false);
     groupBox2.PerformLayout();
     ResumeLayout(performLayout: false);
 }
예제 #15
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScan));
     this.ipStart        = new iptb.IPTextBox();
     this.ipEnd          = new iptb.IPTextBox();
     this.lblStartIP     = new System.Windows.Forms.Label();
     this.lblEndIP       = new System.Windows.Forms.Label();
     this.btnScan        = new System.Windows.Forms.Button();
     this.pnlDivider     = new System.Windows.Forms.Panel();
     this.splContainer   = new System.Windows.Forms.SplitContainer();
     this.lvHosts        = new System.Windows.Forms.ListView();
     this.btnCancel      = new System.Windows.Forms.Button();
     this.btnImport      = new System.Windows.Forms.Button();
     this.cbProtocol     = new System.Windows.Forms.ComboBox();
     this.lblOnlyImport  = new System.Windows.Forms.Label();
     this.clmHost        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmSSH         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmTelnet      = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTP        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTPS       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRlogin      = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRDP         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmVNC         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmOpenPorts   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmClosedPorts = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.prgBar         = new System.Windows.Forms.ProgressBar();
     this.pnlPorts       = new System.Windows.Forms.Panel();
     this.portEnd        = new System.Windows.Forms.NumericUpDown();
     this.portStart      = new System.Windows.Forms.NumericUpDown();
     this.Label2         = new System.Windows.Forms.Label();
     this.Label1         = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.splContainer)).BeginInit();
     this.splContainer.Panel1.SuspendLayout();
     this.splContainer.Panel2.SuspendLayout();
     this.splContainer.SuspendLayout();
     this.pnlPorts.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).BeginInit();
     this.SuspendLayout();
     //
     // ipStart
     //
     this.ipStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.ipStart.Location    = new System.Drawing.Point(7, 37);
     this.ipStart.Name        = "ipStart";
     this.ipStart.Size        = new System.Drawing.Size(132, 20);
     this.ipStart.TabIndex    = 10;
     this.ipStart.ToolTipText = "";
     //
     // ipEnd
     //
     this.ipEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.ipEnd.Location    = new System.Drawing.Point(159, 37);
     this.ipEnd.Name        = "ipEnd";
     this.ipEnd.Size        = new System.Drawing.Size(135, 20);
     this.ipEnd.TabIndex    = 15;
     this.ipEnd.ToolTipText = "";
     //
     // lblStartIP
     //
     this.lblStartIP.AutoSize = true;
     this.lblStartIP.Location = new System.Drawing.Point(4, 10);
     this.lblStartIP.Name     = "lblStartIP";
     this.lblStartIP.Size     = new System.Drawing.Size(45, 13);
     this.lblStartIP.TabIndex = 0;
     this.lblStartIP.Text     = "Start IP:";
     //
     // lblEndIP
     //
     this.lblEndIP.AutoSize = true;
     this.lblEndIP.Location = new System.Drawing.Point(156, 10);
     this.lblEndIP.Name     = "lblEndIP";
     this.lblEndIP.Size     = new System.Drawing.Size(42, 13);
     this.lblEndIP.TabIndex = 5;
     this.lblEndIP.Text     = "End IP:";
     //
     // btnScan
     //
     this.btnScan.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnScan.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.btnScan.Image      = global::My.Resources.Resources.Search;
     this.btnScan.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnScan.Location   = new System.Drawing.Point(763, 9);
     this.btnScan.Name       = "btnScan";
     this.btnScan.Size       = new System.Drawing.Size(86, 59);
     this.btnScan.TabIndex   = 20;
     this.btnScan.Text       = "&Scan";
     this.btnScan.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.btnScan.UseVisualStyleBackColor = true;
     this.btnScan.Click += new System.EventHandler(this.btnScan_Click);
     //
     // pnlDivider
     //
     this.pnlDivider.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlDivider.BackColor = System.Drawing.Color.DimGray;
     this.pnlDivider.Location  = new System.Drawing.Point(0, 11);
     this.pnlDivider.Name      = "pnlDivider";
     this.pnlDivider.Size      = new System.Drawing.Size(861, 10);
     this.pnlDivider.TabIndex  = 20;
     //
     // splContainer
     //
     this.splContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.splContainer.FixedPanel      = System.Windows.Forms.FixedPanel.Panel2;
     this.splContainer.IsSplitterFixed = true;
     this.splContainer.Location        = new System.Drawing.Point(0, 74);
     this.splContainer.Name            = "splContainer";
     this.splContainer.Orientation     = System.Windows.Forms.Orientation.Horizontal;
     //
     // splContainer.Panel1
     //
     this.splContainer.Panel1.Controls.Add(this.lvHosts);
     this.splContainer.Panel1.Controls.Add(this.pnlDivider);
     //
     // splContainer.Panel2
     //
     this.splContainer.Panel2.Controls.Add(this.btnCancel);
     this.splContainer.Panel2.Controls.Add(this.btnImport);
     this.splContainer.Panel2.Controls.Add(this.cbProtocol);
     this.splContainer.Panel2.Controls.Add(this.lblOnlyImport);
     this.splContainer.Size             = new System.Drawing.Size(861, 410);
     this.splContainer.SplitterDistance = 367;
     this.splContainer.TabIndex         = 27;
     //
     // lvHosts
     //
     this.lvHosts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lvHosts.BorderStyle   = System.Windows.Forms.BorderStyle.None;
     this.lvHosts.FullRowSelect = true;
     this.lvHosts.GridLines     = true;
     this.lvHosts.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvHosts.HideSelection = false;
     this.lvHosts.Location      = new System.Drawing.Point(0, 27);
     this.lvHosts.Name          = "lvHosts";
     this.lvHosts.Size          = new System.Drawing.Size(861, 339);
     this.lvHosts.TabIndex      = 26;
     this.lvHosts.UseCompatibleStateImageBehavior = false;
     this.lvHosts.View = System.Windows.Forms.View.Details;
     //
     // btnCancel
     //
     this.btnCancel.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this.btnCancel.Location                = new System.Drawing.Point(778, 8);
     this.btnCancel.Name                    = "btnCancel";
     this.btnCancel.Size                    = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex                = 111;
     this.btnCancel.Text                    = "&Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click                  += new System.EventHandler(this.btnCancel_Click);
     //
     // btnImport
     //
     this.btnImport.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImport.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnImport.Location  = new System.Drawing.Point(697, 8);
     this.btnImport.Name      = "btnImport";
     this.btnImport.Size      = new System.Drawing.Size(75, 23);
     this.btnImport.TabIndex  = 101;
     this.btnImport.Text      = "&Import";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // cbProtocol
     //
     this.cbProtocol.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProtocol.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.cbProtocol.FormattingEnabled = true;
     this.cbProtocol.Items.AddRange(new object[] {
         "SSH2",
         "Telnet",
         "HTTP",
         "HTTPS",
         "Rlogin",
         "RDP",
         "VNC"
     });
     this.cbProtocol.Location = new System.Drawing.Point(111, 9);
     this.cbProtocol.Name     = "cbProtocol";
     this.cbProtocol.Size     = new System.Drawing.Size(122, 21);
     this.cbProtocol.TabIndex = 28;
     //
     // lblOnlyImport
     //
     this.lblOnlyImport.AutoSize = true;
     this.lblOnlyImport.Location = new System.Drawing.Point(3, 12);
     this.lblOnlyImport.Name     = "lblOnlyImport";
     this.lblOnlyImport.Size     = new System.Drawing.Size(92, 13);
     this.lblOnlyImport.TabIndex = 1;
     this.lblOnlyImport.Text     = "Protocol to import:";
     //
     // clmHost
     //
     this.clmHost.Text  = "Hostname/IP";
     this.clmHost.Width = 130;
     //
     // clmSSH
     //
     this.clmSSH.Text  = "SSH";
     this.clmSSH.Width = 50;
     //
     // clmTelnet
     //
     this.clmTelnet.Text  = "Telnet";
     this.clmTelnet.Width = 50;
     //
     // clmHTTP
     //
     this.clmHTTP.Text  = "HTTP";
     this.clmHTTP.Width = 50;
     //
     // clmHTTPS
     //
     this.clmHTTPS.Text  = "HTTPS";
     this.clmHTTPS.Width = 50;
     //
     // clmRlogin
     //
     this.clmRlogin.Text  = "Rlogin";
     this.clmRlogin.Width = 50;
     //
     // clmRDP
     //
     this.clmRDP.Text  = "RDP";
     this.clmRDP.Width = 50;
     //
     // clmVNC
     //
     this.clmVNC.Text  = "VNC";
     this.clmVNC.Width = 50;
     //
     // clmOpenPorts
     //
     this.clmOpenPorts.Text  = "Open Ports";
     this.clmOpenPorts.Width = 150;
     //
     // clmClosedPorts
     //
     this.clmClosedPorts.Text  = "Closed Ports";
     this.clmClosedPorts.Width = 150;
     //
     // prgBar
     //
     this.prgBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.prgBar.Location = new System.Drawing.Point(7, 63);
     this.prgBar.Name     = "prgBar";
     this.prgBar.Size     = new System.Drawing.Size(751, 16);
     this.prgBar.Step     = 1;
     this.prgBar.TabIndex = 28;
     //
     // pnlPorts
     //
     this.pnlPorts.Controls.Add(this.portEnd);
     this.pnlPorts.Controls.Add(this.portStart);
     this.pnlPorts.Controls.Add(this.Label2);
     this.pnlPorts.Controls.Add(this.Label1);
     this.pnlPorts.Location = new System.Drawing.Point(319, 8);
     this.pnlPorts.Name     = "pnlPorts";
     this.pnlPorts.Size     = new System.Drawing.Size(152, 51);
     this.pnlPorts.TabIndex = 18;
     //
     // portEnd
     //
     this.portEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.portEnd.Location    = new System.Drawing.Point(79, 28);
     this.portEnd.Maximum     = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portEnd.Name     = "portEnd";
     this.portEnd.Size     = new System.Drawing.Size(67, 20);
     this.portEnd.TabIndex = 15;
     //
     // portStart
     //
     this.portStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.portStart.Location    = new System.Drawing.Point(6, 28);
     this.portStart.Maximum     = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portStart.Name     = "portStart";
     this.portStart.Size     = new System.Drawing.Size(67, 20);
     this.portStart.TabIndex = 5;
     //
     // Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(78, 1);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(51, 13);
     this.Label2.TabIndex = 10;
     this.Label2.Text     = "End Port:";
     //
     // Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(3, 0);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(54, 13);
     this.Label1.TabIndex = 0;
     this.Label1.Text     = "Start Port:";
     //
     // PortScan
     //
     this.AcceptButton = this.btnImport;
     this.CancelButton = this.btnCancel;
     this.ClientSize   = new System.Drawing.Size(861, 484);
     this.Controls.Add(this.pnlPorts);
     this.Controls.Add(this.prgBar);
     this.Controls.Add(this.splContainer);
     this.Controls.Add(this.btnScan);
     this.Controls.Add(this.lblEndIP);
     this.Controls.Add(this.lblStartIP);
     this.Controls.Add(this.ipEnd);
     this.Controls.Add(this.ipStart);
     this.Font    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.Icon    = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name    = "PortScan";
     this.TabText = "Port Scan";
     this.Text    = "Port Scan";
     this.splContainer.Panel1.ResumeLayout(false);
     this.splContainer.Panel2.ResumeLayout(false);
     this.splContainer.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splContainer)).EndInit();
     this.splContainer.ResumeLayout(false);
     this.pnlPorts.ResumeLayout(false);
     this.pnlPorts.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScanWindow));
     this.ipStart        = new mRemoteNG.UI.Controls.IPTextBox();
     this.ipEnd          = new mRemoteNG.UI.Controls.IPTextBox();
     this.lblStartIP     = new System.Windows.Forms.Label();
     this.lblEndIP       = new System.Windows.Forms.Label();
     this.btnScan        = new System.Windows.Forms.Button();
     this.lvHosts        = new System.Windows.Forms.ListView();
     this.btnImport      = new System.Windows.Forms.Button();
     this.cbProtocol     = new System.Windows.Forms.ComboBox();
     this.lblOnlyImport  = new System.Windows.Forms.Label();
     this.clmHost        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmSSH         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmTelnet      = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTP        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTPS       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRlogin      = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRDP         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmVNC         = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmOpenPorts   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmClosedPorts = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.prgBar         = new System.Windows.Forms.ProgressBar();
     this.pnlPorts       = new System.Windows.Forms.Panel();
     this.portEnd        = new System.Windows.Forms.NumericUpDown();
     this.portStart      = new System.Windows.Forms.NumericUpDown();
     this.Label2         = new System.Windows.Forms.Label();
     this.Label1         = new System.Windows.Forms.Label();
     this.pnlImport      = new System.Windows.Forms.Panel();
     this.pnlPorts.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).BeginInit();
     this.pnlImport.SuspendLayout();
     this.SuspendLayout();
     //
     // ipStart
     //
     this.ipStart.Location    = new System.Drawing.Point(12, 25);
     this.ipStart.Name        = "ipStart";
     this.ipStart.Size        = new System.Drawing.Size(130, 20);
     this.ipStart.TabIndex    = 10;
     this.ipStart.ToolTipText = "";
     //
     // ipEnd
     //
     this.ipEnd.Location    = new System.Drawing.Point(148, 25);
     this.ipEnd.Name        = "ipEnd";
     this.ipEnd.Size        = new System.Drawing.Size(130, 20);
     this.ipEnd.TabIndex    = 15;
     this.ipEnd.ToolTipText = "";
     //
     // lblStartIP
     //
     this.lblStartIP.AutoSize = true;
     this.lblStartIP.Location = new System.Drawing.Point(12, 7);
     this.lblStartIP.Name     = "lblStartIP";
     this.lblStartIP.Size     = new System.Drawing.Size(57, 19);
     this.lblStartIP.TabIndex = 0;
     this.lblStartIP.Text     = "Start IP:";
     //
     // lblEndIP
     //
     this.lblEndIP.AutoSize = true;
     this.lblEndIP.Location = new System.Drawing.Point(148, 7);
     this.lblEndIP.Name     = "lblEndIP";
     this.lblEndIP.Size     = new System.Drawing.Size(51, 19);
     this.lblEndIP.TabIndex = 5;
     this.lblEndIP.Text     = "End IP:";
     //
     // btnScan
     //
     this.btnScan.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnScan.Image                   = global::mRemoteNG.Resources.Search;
     this.btnScan.Location                = new System.Drawing.Point(597, 9);
     this.btnScan.Name                    = "btnScan";
     this.btnScan.Size                    = new System.Drawing.Size(86, 58);
     this.btnScan.TabIndex                = 20;
     this.btnScan.Text                    = "&Scan";
     this.btnScan.TextImageRelation       = System.Windows.Forms.TextImageRelation.ImageBeforeText;
     this.btnScan.UseVisualStyleBackColor = true;
     this.btnScan.Click                  += new System.EventHandler(this.btnScan_Click);
     //
     // lvHosts
     //
     this.lvHosts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.lvHosts.FullRowSelect = true;
     this.lvHosts.GridLines     = true;
     this.lvHosts.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvHosts.HideSelection = false;
     this.lvHosts.Location      = new System.Drawing.Point(12, 73);
     this.lvHosts.Name          = "lvHosts";
     this.lvHosts.Size          = new System.Drawing.Size(671, 265);
     this.lvHosts.TabIndex      = 26;
     this.lvHosts.UseCompatibleStateImageBehavior = false;
     this.lvHosts.View = System.Windows.Forms.View.Details;
     //
     // btnImport
     //
     this.btnImport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImport.Location = new System.Drawing.Point(585, 3);
     this.btnImport.Name     = "btnImport";
     this.btnImport.Size     = new System.Drawing.Size(75, 31);
     this.btnImport.TabIndex = 101;
     this.btnImport.Text     = "&Import";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // cbProtocol
     //
     this.cbProtocol.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.cbProtocol.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProtocol.FormattingEnabled = true;
     this.cbProtocol.Items.AddRange(new object[] {
         "SSH2",
         "Telnet",
         "HTTP",
         "HTTPS",
         "Rlogin",
         "RDP",
         "VNC"
     });
     this.cbProtocol.Location = new System.Drawing.Point(157, 6);
     this.cbProtocol.Name     = "cbProtocol";
     this.cbProtocol.Size     = new System.Drawing.Size(122, 27);
     this.cbProtocol.TabIndex = 28;
     //
     // lblOnlyImport
     //
     this.lblOnlyImport.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.lblOnlyImport.AutoSize = true;
     this.lblOnlyImport.Location = new System.Drawing.Point(5, 13);
     this.lblOnlyImport.Name     = "lblOnlyImport";
     this.lblOnlyImport.Size     = new System.Drawing.Size(125, 19);
     this.lblOnlyImport.TabIndex = 1;
     this.lblOnlyImport.Text     = "Protocol to import:";
     //
     // clmHost
     //
     this.clmHost.Text  = "Hostname/IP";
     this.clmHost.Width = 130;
     //
     // clmSSH
     //
     this.clmSSH.Text  = "SSH";
     this.clmSSH.Width = 50;
     //
     // clmTelnet
     //
     this.clmTelnet.Text  = "Telnet";
     this.clmTelnet.Width = 50;
     //
     // clmHTTP
     //
     this.clmHTTP.Text  = "HTTP";
     this.clmHTTP.Width = 50;
     //
     // clmHTTPS
     //
     this.clmHTTPS.Text  = "HTTPS";
     this.clmHTTPS.Width = 50;
     //
     // clmRlogin
     //
     this.clmRlogin.Text  = "Rlogin";
     this.clmRlogin.Width = 50;
     //
     // clmRDP
     //
     this.clmRDP.Text  = "RDP";
     this.clmRDP.Width = 50;
     //
     // clmVNC
     //
     this.clmVNC.Text  = "VNC";
     this.clmVNC.Width = 50;
     //
     // clmOpenPorts
     //
     this.clmOpenPorts.Text  = "Open Ports";
     this.clmOpenPorts.Width = 150;
     //
     // clmClosedPorts
     //
     this.clmClosedPorts.Text  = "Closed Ports";
     this.clmClosedPorts.Width = 150;
     //
     // prgBar
     //
     this.prgBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.prgBar.Location = new System.Drawing.Point(12, 51);
     this.prgBar.Name     = "prgBar";
     this.prgBar.Size     = new System.Drawing.Size(579, 16);
     this.prgBar.Step     = 1;
     this.prgBar.TabIndex = 28;
     //
     // pnlPorts
     //
     this.pnlPorts.Controls.Add(this.portEnd);
     this.pnlPorts.Controls.Add(this.portStart);
     this.pnlPorts.Controls.Add(this.Label2);
     this.pnlPorts.Controls.Add(this.Label1);
     this.pnlPorts.Location = new System.Drawing.Point(284, 7);
     this.pnlPorts.Name     = "pnlPorts";
     this.pnlPorts.Size     = new System.Drawing.Size(307, 38);
     this.pnlPorts.TabIndex = 18;
     //
     // portEnd
     //
     this.portEnd.Location = new System.Drawing.Point(232, 5);
     this.portEnd.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portEnd.Name     = "portEnd";
     this.portEnd.Size     = new System.Drawing.Size(67, 26);
     this.portEnd.TabIndex = 15;
     this.portEnd.Enter   += new System.EventHandler(this.portEnd_Enter);
     //
     // portStart
     //
     this.portStart.Location = new System.Drawing.Point(79, 5);
     this.portStart.Maximum  = new decimal(new int[] {
         65535,
         0,
         0,
         0
     });
     this.portStart.Name     = "portStart";
     this.portStart.Size     = new System.Drawing.Size(67, 26);
     this.portStart.TabIndex = 5;
     this.portStart.Enter   += new System.EventHandler(this.portStart_Enter);
     //
     // Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(162, 7);
     this.Label2.Name     = "Label2";
     this.Label2.Size     = new System.Drawing.Size(64, 19);
     this.Label2.TabIndex = 10;
     this.Label2.Text     = "End Port:";
     //
     // Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(3, 7);
     this.Label1.Name     = "Label1";
     this.Label1.Size     = new System.Drawing.Size(70, 19);
     this.Label1.TabIndex = 0;
     this.Label1.Text     = "Start Port:";
     //
     // pnlImport
     //
     this.pnlImport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlImport.Controls.Add(this.btnImport);
     this.pnlImport.Controls.Add(this.lblOnlyImport);
     this.pnlImport.Controls.Add(this.cbProtocol);
     this.pnlImport.Location = new System.Drawing.Point(12, 344);
     this.pnlImport.Name     = "pnlImport";
     this.pnlImport.Size     = new System.Drawing.Size(671, 40);
     this.pnlImport.TabIndex = 102;
     //
     // PortScanWindow
     //
     this.AcceptButton = this.btnImport;
     this.ClientSize   = new System.Drawing.Size(695, 396);
     this.Controls.Add(this.pnlImport);
     this.Controls.Add(this.lvHosts);
     this.Controls.Add(this.pnlPorts);
     this.Controls.Add(this.prgBar);
     this.Controls.Add(this.btnScan);
     this.Controls.Add(this.lblEndIP);
     this.Controls.Add(this.lblStartIP);
     this.Controls.Add(this.ipEnd);
     this.Controls.Add(this.ipStart);
     this.Font    = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon    = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name    = "PortScanWindow";
     this.TabText = "Port Scan";
     this.Text    = "Port Scan";
     this.Load   += new System.EventHandler(this.PortScan_Load);
     this.pnlPorts.ResumeLayout(false);
     this.pnlPorts.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).EndInit();
     this.pnlImport.ResumeLayout(false);
     this.pnlImport.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #17
0
        private void InitializeComponent()
        {
            _addressLabel     = new Label();
            _portLabel        = new Label();
            _colonLabel       = new Label();
            _loginLabel       = new Label();
            _passwordLabel    = new Label();
            _addressTextBox   = new IPTextBox();
            _portTextBox      = new PortTextBox();
            _loginTextBox     = new HidenTextBox();
            _passwordTextBox  = new HidenTextBox();
            _saveProxyButton  = new Button();
            _resetProxyButton = new Button();
            _helpToolTip      = new HelpToolTip();

            _addressLabel.Location = new Point(3, 1);
            _addressLabel.Size     = new Size(100, 15);

            _addressTextBox.Location     = new Point(5, 17);
            _addressTextBox.Size         = new Size(100, 25);
            _addressTextBox.DefaultHost  = @"127.0.0.1";
            _addressTextBox.TextChanged += (sender, args) => CheckAddressValid();

            _colonLabel.Location  = new Point(101, 16);
            _colonLabel.Size      = new Size(10, 25);
            _colonLabel.Font      = new Font(Font.Name, Font.Size + 4);
            _colonLabel.TextAlign = ContentAlignment.TopLeft;
            _colonLabel.Text      = @":";

            _portLabel.Location = new Point(107, 1);
            _portLabel.Size     = new Size(100, 15);

            _portTextBox.Location     = new Point(110, 17);
            _portTextBox.Size         = new Size(36, 25);
            _portTextBox.DefaultPort  = 3128;
            _portTextBox.TextChanged += (sender, args) => CheckAddressValid();

            _loginLabel.Location = new Point(3, 39);
            _loginLabel.Size     = new Size(140, 15);

            _loginTextBox.Location = new Point(5, 54);
            _loginTextBox.Size     = new Size(140, 25);

            _passwordLabel.Location = new Point(3, 75);
            _passwordLabel.Size     = new Size(140, 15);

            _passwordTextBox.Location = new Point(5, 90);
            _passwordTextBox.Size     = new Size(140, 25);

            _saveProxyButton.Location  = new Point(3, 115);
            _saveProxyButton.Size      = new Size(120, 25);
            _saveProxyButton.TextAlign = ContentAlignment.MiddleCenter;
            _saveProxyButton.Click    += SaveProxyButtonClickAsync;

            _resetProxyButton.Location = new Point(123, 114);
            _resetProxyButton.Size     = new Size(_saveProxyButton.Size.Height, _saveProxyButton.Size.Height);
            _resetProxyButton.Image    = new Bitmap(Images.Fill.ResetGear, new Size(_resetProxyButton.Size.Height / 2, _resetProxyButton.Size.Height / 2));
            _resetProxyButton.Click   += ResetProxyButtonClick;

            MinimizeBox         = false;
            MaximizeBox         = false;
            ShowInTaskbar       = false;
            AutoScaleDimensions = new SizeF(7F, 15F);
            ClientSize          = new Size(150, 145);
            AutoScaleMode       = AutoScaleMode.Font;
            FormBorderStyle     = FormBorderStyle.FixedDialog;
            Controls.Add(_addressLabel);
            Controls.Add(_addressTextBox);
            Controls.Add(_portLabel);
            Controls.Add(_portTextBox);
            Controls.Add(_loginLabel);
            Controls.Add(_loginTextBox);
            Controls.Add(_passwordLabel);
            Controls.Add(_passwordTextBox);
            Controls.Add(_saveProxyButton);
            Controls.Add(_resetProxyButton);
            Controls.Add(_colonLabel);
            Icon = ImageUtils.IconFromImage(Images.Others.Proxy);
        }
예제 #18
0
        public ManuallyConnectDialog(string IP = null, string nick = null, string message = null)
        {
            InitializeComponent();
            if (message != null)
            {
                Grid.SetRow(responsePanel, 3);
                Label _messageLabel = new Label();
                _messageLabel.Content    = message;
                _messageLabel.Foreground = Brushes.Red;
                _messageLabel.HorizontalContentAlignment = HorizontalAlignment.Center;
                _messageLabel.Margin = new Thickness(0, 10, 0, -10);
                mainGrid.Children.Add(_messageLabel);
                Grid.SetRow(_messageLabel, 2);
            }
            if (IP != null)
            {
                IPTextBox.Text      = IP;
                IPTextBox.IsEnabled = false;

                passwordRequired.IsChecked = true;
                passwordRequired.IsEnabled = false;

                passwordBox                 = new PasswordBox();
                passwordBox.Name            = "passwordBox";
                passwordBox.Margin          = new Thickness(3, 4, 0, -7);
                passwordBox.MaxLength       = 40;
                passwordBox.MaxWidth        = 180;
                passwordBox.KeyDown        += new System.Windows.Input.KeyEventHandler(IPTextBoxKeyDown);
                passwordBox.ToolTipOpening += new ToolTipEventHandler(PasswordBoxToolTipOpening);
                passwordGrid.Children.Add(passwordBox);
                Grid.SetColumn(passwordBox, 1);
                passwordBox.SelectAll();
                passwordBox.Focus();
            }
            if (nick != null)
            {
                IPTextBox.Width = 150;
                Label _label = new Label();
                if (nick.Length > 10)
                {
                    nick = nick.Substring(0, 8) + "..";
                }
                nick           = "(" + nick + ")";
                _label.Content = nick;
                _label.Width   = 1000;
                IPPanel.Children.Add(_label);
                Grid.SetColumnSpan(IPTextBox, 1);
                Grid.SetColumn(_label, 1);
                passwordRequired.IsChecked = true;
                passwordRequired.IsEnabled = false;

                passwordBox                 = new PasswordBox();
                passwordBox.Name            = "passwordBox";
                passwordBox.Margin          = new Thickness(3, 4, 0, -7);
                passwordBox.MaxWidth        = 180;
                passwordBox.KeyDown        += new System.Windows.Input.KeyEventHandler(IPTextBoxKeyDown);
                passwordBox.ToolTipOpening += new ToolTipEventHandler(PasswordBoxToolTipOpening);
                passwordGrid.Children.Add(passwordBox);
                passwordBox.MaxLength = 40;
                Grid.SetColumn(passwordBox, 1);
                passwordBox.SelectAll();
                passwordBox.Focus();
            }
            else
            {
                IPTextBox.Text = "Enter IP Address";
                IPTextBox.SelectAll();
                IPTextBox.Focus();
            }
            IPTextBox.Style = Resources["noError"] as Style;
        }
예제 #19
0
 private void InitializeComponent()
 {
     this._ipTextBox  = new Controllers.E131.Controls.IPTextBox();
     this.btnIpOkay   = new System.Windows.Forms.Button();
     this.btnIpCancel = new System.Windows.Forms.Button();
     this.label1      = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // _ipTextBox
     //
     this._ipTextBox.Location = new System.Drawing.Point(13, 30);
     this._ipTextBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this._ipTextBox.Name     = "_ipTextBox";
     this._ipTextBox.Size     = new System.Drawing.Size(132, 20);
     this._ipTextBox.TabIndex = 0;
     this._ipTextBox.Text     = "0.0.0.0";
     //
     // btnIpOkay
     //
     this.btnIpOkay.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.btnIpOkay.Location                = new System.Drawing.Point(13, 74);
     this.btnIpOkay.Margin                  = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btnIpOkay.Name                    = "btnIpOkay";
     this.btnIpOkay.Size                    = new System.Drawing.Size(100, 28);
     this.btnIpOkay.TabIndex                = 1;
     this.btnIpOkay.Text                    = "Ok";
     this.btnIpOkay.UseVisualStyleBackColor = true;
     //
     // btnIpCancel
     //
     this.btnIpCancel.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.btnIpCancel.Location                = new System.Drawing.Point(121, 74);
     this.btnIpCancel.Margin                  = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.btnIpCancel.Name                    = "btnIpCancel";
     this.btnIpCancel.Size                    = new System.Drawing.Size(100, 28);
     this.btnIpCancel.TabIndex                = 2;
     this.btnIpCancel.Text                    = "Cancel";
     this.btnIpCancel.UseVisualStyleBackColor = true;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(13, 13);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(139, 13);
     this.label1.TabIndex = 3;
     this.label1.Text     = "Enter your Unicast IP Below";
     //
     // UnicastForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(232, 116);
     this.ControlBox          = false;
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnIpCancel);
     this.Controls.Add(this.btnIpOkay);
     this.Controls.Add(this._ipTextBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Margin          = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "UnicastForm";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void ShowWindow()
 {
     this.Opacity = 1;
     this.Show();
     IPTextBox.Focus();
 }
예제 #21
0
파일: Form1.cs 프로젝트: 3505VFD/VFD
 private void IPLabel_Click(object sender, EventArgs e)
 {
     IPTextBox.Focus();
 }
 private void ConfigForm_Shown(object sender, EventArgs e)
 {
     IPTextBox.Focus();
 }
예제 #23
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PortScan));
     this.ipStart = new iptb.IPTextBox();
     this.ipEnd = new iptb.IPTextBox();
     this.lblStartIP = new System.Windows.Forms.Label();
     this.lblEndIP = new System.Windows.Forms.Label();
     this.btnScan = new System.Windows.Forms.Button();
     this.pnlDivider = new System.Windows.Forms.Panel();
     this.splContainer = new System.Windows.Forms.SplitContainer();
     this.lvHosts = new System.Windows.Forms.ListView();
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnImport = new System.Windows.Forms.Button();
     this.cbProtocol = new System.Windows.Forms.ComboBox();
     this.lblOnlyImport = new System.Windows.Forms.Label();
     this.clmHost = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmSSH = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmTelnet = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTP = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmHTTPS = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRlogin = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmRDP = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmVNC = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmOpenPorts = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.clmClosedPorts = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.prgBar = new System.Windows.Forms.ProgressBar();
     this.pnlPorts = new System.Windows.Forms.Panel();
     this.portEnd = new System.Windows.Forms.NumericUpDown();
     this.portStart = new System.Windows.Forms.NumericUpDown();
     this.Label2 = new System.Windows.Forms.Label();
     this.Label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.splContainer)).BeginInit();
     this.splContainer.Panel1.SuspendLayout();
     this.splContainer.Panel2.SuspendLayout();
     this.splContainer.SuspendLayout();
     this.pnlPorts.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).BeginInit();
     this.SuspendLayout();
     //
     // ipStart
     //
     this.ipStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.ipStart.Location = new System.Drawing.Point(7, 37);
     this.ipStart.Name = "ipStart";
     this.ipStart.Size = new System.Drawing.Size(132, 20);
     this.ipStart.TabIndex = 10;
     this.ipStart.ToolTipText = "";
     //
     // ipEnd
     //
     this.ipEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.ipEnd.Location = new System.Drawing.Point(159, 37);
     this.ipEnd.Name = "ipEnd";
     this.ipEnd.Size = new System.Drawing.Size(135, 20);
     this.ipEnd.TabIndex = 15;
     this.ipEnd.ToolTipText = "";
     //
     // lblStartIP
     //
     this.lblStartIP.AutoSize = true;
     this.lblStartIP.Location = new System.Drawing.Point(4, 10);
     this.lblStartIP.Name = "lblStartIP";
     this.lblStartIP.Size = new System.Drawing.Size(45, 13);
     this.lblStartIP.TabIndex = 0;
     this.lblStartIP.Text = "Start IP:";
     //
     // lblEndIP
     //
     this.lblEndIP.AutoSize = true;
     this.lblEndIP.Location = new System.Drawing.Point(156, 10);
     this.lblEndIP.Name = "lblEndIP";
     this.lblEndIP.Size = new System.Drawing.Size(42, 13);
     this.lblEndIP.TabIndex = 5;
     this.lblEndIP.Text = "End IP:";
     //
     // btnScan
     //
     this.btnScan.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnScan.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnScan.Image = global::My.Resources.Resources.Search;
     this.btnScan.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnScan.Location = new System.Drawing.Point(763, 9);
     this.btnScan.Name = "btnScan";
     this.btnScan.Size = new System.Drawing.Size(86, 59);
     this.btnScan.TabIndex = 20;
     this.btnScan.Text = "&Scan";
     this.btnScan.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.btnScan.UseVisualStyleBackColor = true;
     this.btnScan.Click += new System.EventHandler(this.btnScan_Click);
     //
     // pnlDivider
     //
     this.pnlDivider.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlDivider.BackColor = System.Drawing.Color.DimGray;
     this.pnlDivider.Location = new System.Drawing.Point(0, 11);
     this.pnlDivider.Name = "pnlDivider";
     this.pnlDivider.Size = new System.Drawing.Size(861, 10);
     this.pnlDivider.TabIndex = 20;
     //
     // splContainer
     //
     this.splContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.splContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
     this.splContainer.IsSplitterFixed = true;
     this.splContainer.Location = new System.Drawing.Point(0, 74);
     this.splContainer.Name = "splContainer";
     this.splContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splContainer.Panel1
     //
     this.splContainer.Panel1.Controls.Add(this.lvHosts);
     this.splContainer.Panel1.Controls.Add(this.pnlDivider);
     //
     // splContainer.Panel2
     //
     this.splContainer.Panel2.Controls.Add(this.btnCancel);
     this.splContainer.Panel2.Controls.Add(this.btnImport);
     this.splContainer.Panel2.Controls.Add(this.cbProtocol);
     this.splContainer.Panel2.Controls.Add(this.lblOnlyImport);
     this.splContainer.Size = new System.Drawing.Size(861, 410);
     this.splContainer.SplitterDistance = 367;
     this.splContainer.TabIndex = 27;
     //
     // lvHosts
     //
     this.lvHosts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.lvHosts.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.lvHosts.FullRowSelect = true;
     this.lvHosts.GridLines = true;
     this.lvHosts.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvHosts.HideSelection = false;
     this.lvHosts.Location = new System.Drawing.Point(0, 27);
     this.lvHosts.Name = "lvHosts";
     this.lvHosts.Size = new System.Drawing.Size(861, 339);
     this.lvHosts.TabIndex = 26;
     this.lvHosts.UseCompatibleStateImageBehavior = false;
     this.lvHosts.View = System.Windows.Forms.View.Details;
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnCancel.Location = new System.Drawing.Point(778, 8);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 111;
     this.btnCancel.Text = "&Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnImport
     //
     this.btnImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImport.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnImport.Location = new System.Drawing.Point(697, 8);
     this.btnImport.Name = "btnImport";
     this.btnImport.Size = new System.Drawing.Size(75, 23);
     this.btnImport.TabIndex = 101;
     this.btnImport.Text = "&Import";
     this.btnImport.UseVisualStyleBackColor = true;
     this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
     //
     // cbProtocol
     //
     this.cbProtocol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProtocol.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cbProtocol.FormattingEnabled = true;
     this.cbProtocol.Items.AddRange(new object[] {
     "SSH2",
     "Telnet",
     "HTTP",
     "HTTPS",
     "Rlogin",
     "RDP",
     "VNC"});
     this.cbProtocol.Location = new System.Drawing.Point(111, 9);
     this.cbProtocol.Name = "cbProtocol";
     this.cbProtocol.Size = new System.Drawing.Size(122, 21);
     this.cbProtocol.TabIndex = 28;
     //
     // lblOnlyImport
     //
     this.lblOnlyImport.AutoSize = true;
     this.lblOnlyImport.Location = new System.Drawing.Point(3, 12);
     this.lblOnlyImport.Name = "lblOnlyImport";
     this.lblOnlyImport.Size = new System.Drawing.Size(92, 13);
     this.lblOnlyImport.TabIndex = 1;
     this.lblOnlyImport.Text = "Protocol to import:";
     //
     // clmHost
     //
     this.clmHost.Text = "Hostname/IP";
     this.clmHost.Width = 130;
     //
     // clmSSH
     //
     this.clmSSH.Text = "SSH";
     this.clmSSH.Width = 50;
     //
     // clmTelnet
     //
     this.clmTelnet.Text = "Telnet";
     this.clmTelnet.Width = 50;
     //
     // clmHTTP
     //
     this.clmHTTP.Text = "HTTP";
     this.clmHTTP.Width = 50;
     //
     // clmHTTPS
     //
     this.clmHTTPS.Text = "HTTPS";
     this.clmHTTPS.Width = 50;
     //
     // clmRlogin
     //
     this.clmRlogin.Text = "Rlogin";
     this.clmRlogin.Width = 50;
     //
     // clmRDP
     //
     this.clmRDP.Text = "RDP";
     this.clmRDP.Width = 50;
     //
     // clmVNC
     //
     this.clmVNC.Text = "VNC";
     this.clmVNC.Width = 50;
     //
     // clmOpenPorts
     //
     this.clmOpenPorts.Text = "Open Ports";
     this.clmOpenPorts.Width = 150;
     //
     // clmClosedPorts
     //
     this.clmClosedPorts.Text = "Closed Ports";
     this.clmClosedPorts.Width = 150;
     //
     // prgBar
     //
     this.prgBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.prgBar.Location = new System.Drawing.Point(7, 63);
     this.prgBar.Name = "prgBar";
     this.prgBar.Size = new System.Drawing.Size(751, 16);
     this.prgBar.Step = 1;
     this.prgBar.TabIndex = 28;
     //
     // pnlPorts
     //
     this.pnlPorts.Controls.Add(this.portEnd);
     this.pnlPorts.Controls.Add(this.portStart);
     this.pnlPorts.Controls.Add(this.Label2);
     this.pnlPorts.Controls.Add(this.Label1);
     this.pnlPorts.Location = new System.Drawing.Point(319, 8);
     this.pnlPorts.Name = "pnlPorts";
     this.pnlPorts.Size = new System.Drawing.Size(152, 51);
     this.pnlPorts.TabIndex = 18;
     //
     // portEnd
     //
     this.portEnd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.portEnd.Location = new System.Drawing.Point(79, 28);
     this.portEnd.Maximum = new decimal(new int[] {
     65535,
     0,
     0,
     0});
     this.portEnd.Name = "portEnd";
     this.portEnd.Size = new System.Drawing.Size(67, 20);
     this.portEnd.TabIndex = 15;
     //
     // portStart
     //
     this.portStart.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.portStart.Location = new System.Drawing.Point(6, 28);
     this.portStart.Maximum = new decimal(new int[] {
     65535,
     0,
     0,
     0});
     this.portStart.Name = "portStart";
     this.portStart.Size = new System.Drawing.Size(67, 20);
     this.portStart.TabIndex = 5;
     //
     // Label2
     //
     this.Label2.AutoSize = true;
     this.Label2.Location = new System.Drawing.Point(78, 1);
     this.Label2.Name = "Label2";
     this.Label2.Size = new System.Drawing.Size(51, 13);
     this.Label2.TabIndex = 10;
     this.Label2.Text = "End Port:";
     //
     // Label1
     //
     this.Label1.AutoSize = true;
     this.Label1.Location = new System.Drawing.Point(3, 0);
     this.Label1.Name = "Label1";
     this.Label1.Size = new System.Drawing.Size(54, 13);
     this.Label1.TabIndex = 0;
     this.Label1.Text = "Start Port:";
     //
     // PortScan
     //
     this.AcceptButton = this.btnImport;
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(861, 484);
     this.Controls.Add(this.pnlPorts);
     this.Controls.Add(this.prgBar);
     this.Controls.Add(this.splContainer);
     this.Controls.Add(this.btnScan);
     this.Controls.Add(this.lblEndIP);
     this.Controls.Add(this.lblStartIP);
     this.Controls.Add(this.ipEnd);
     this.Controls.Add(this.ipStart);
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "PortScan";
     this.TabText = "Port Scan";
     this.Text = "Port Scan";
     this.splContainer.Panel1.ResumeLayout(false);
     this.splContainer.Panel2.ResumeLayout(false);
     this.splContainer.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splContainer)).EndInit();
     this.splContainer.ResumeLayout(false);
     this.pnlPorts.ResumeLayout(false);
     this.pnlPorts.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.portEnd)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.portStart)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }