Ejemplo n.º 1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            #region Controls
            var defButtonSize = new Size(83, 23);

            menuSubHelpBtn    = new BaseButton(_res, "menuSubHelpBtn", 11, visStyleBackColor: true, point: new Point(502, 172), size: defButtonSize, text: "Help!");
            removeSelectedBtn = new BaseButton(_res, "removeSelectedBtn", 10, visStyleBackColor: true, point: new Point(98, 142), size: new Size(104, 23), text: "Remove Selected");
            stopCurrentBtn    = new BaseButton(_res, "stopCurrentBtn", 9, visStyleBackColor: true, point: new Point(297, 142), size: defButtonSize, text: "Stop Current");
            runCustomBtn      = new BaseButton(_res, "runCustomBtn", 8, visStyleBackColor: true, point: new Point(208, 142), size: defButtonSize, text: "Run Custom");
            createNewBtn      = new BaseButton(_res, "createNewBtn", 7, visStyleBackColor: true, point: new Point(6, 142), size: defButtonSize, text: "Add New");
            saveAsCsvBtn      = new BaseButton(_res, "saveAsCsvBtn", 5, visStyleBackColor: true, point: new Point(187, 41), size: defButtonSize, text: "Save as CSV");
            saveAsXmlBtn      = new BaseButton(_res, "saveAsXmlBtn", 4, visStyleBackColor: true, point: new Point(98, 41), size: defButtonSize, text: "Save as XML");
            resetCrntBtn      = new BaseButton(_res, "resetCrntBtn", 3, visStyleBackColor: true, point: new Point(357, 41), size: defButtonSize, text: "Reset Current");
            openFileBtn       = new BaseButton(_res, "openFileBtn", 2, visStyleBackColor: true, point: new Point(276, 41), size: new Size(75, 23), text: "Open File");
            saveAsTxtBtn      = new BaseButton(_res, "saveAsTxtBtn", visStyleBackColor: true, point: new Point(3, 41), size: new Size(86, 23), text: "Save as Text");
            scriptLbl         = new BaseLabel(_res, "scriptLbl", 6, new Point(3, 101), new Size(107, 17), "Script / Process", autoSize: true);
            procStatusLbl     = new BaseLabel(_res, "procStatusLbl", 3, new Point(336, 270), new Size(37, 23), "Idle", autoSize: true, borderStyle: BorderStyle.Fixed3D);
            reportingLbl      = new BaseLabel(_res, "reportingLbl", 1, new Point(3, 0), new Size(70, 17), "Reporting", autoSize: false);
            currentStatusBar  = new BaseProgressBar(_res, "currentStatusBar", 1, new Point(12, 270), new Size(318, 23));
            infoTextBox       = new BaseRichTextBox(_res, "infoTextBox", 2, Color.Black, Color.LimeGreen, new Point(12, 12), new Size(592, 241));
            #endregion

            #region Panels
            reportingOpersPnl = new BasePanel(_res, "reportingOpersPnl", controls: new Control[] { menuSubHelpBtn, removeSelectedBtn, stopCurrentBtn, runCustomBtn, createNewBtn, scriptLbl, saveAsCsvBtn, saveAsXmlBtn, resetCrntBtn, openFileBtn, reportingLbl, saveAsTxtBtn },
                                              point: new Point(12, 308), size: new Size(592, 202));
            #endregion

            SuspendLayout();
            InitMainMenuSub();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            #region Controls
            var defTxtBoxSize = new Size(100, 20);

            adapterIpsListBox           = new BaseListBox(_res, "adaptersIpsListBox", 2, true, backColor: SystemColors.MenuText, foreColor: Color.YellowGreen, point: new Point(13, 358), size: new Size(591, 148), itemHeight: 16);
            selectedAdapterDataRchTxtBx = new BaseRichTextBox(_res, "selectedAdapterDataRchTxtBx", 7, SystemColors.MenuText, Color.YellowGreen, new Point(3, 95), new Size(259, 131));
            gatewayTxtBox     = new BaseTextBox(_res, "gatewayTxtBox", 9, new Point(7, 171), defTxtBoxSize);
            ipAddTxtBox       = new BaseTextBox(_res, "ipAddTxtBox", 8, new Point(7, 95), defTxtBoxSize);
            maskTxtBox        = new BaseTextBox(_res, "maskTxtBox", 7, new Point(158, 95), defTxtBoxSize);
            dnsTxtBox         = new BaseTextBox(_res, "dnsTxtBox", 6, new Point(158, 171), defTxtBoxSize);
            dnsLbl            = new BaseLabel(_res, "dnsLbl", 4, new Point(155, 151), new Size(41, 17), "DNS:", autoSize: true);
            gatewayLbl        = new BaseLabel(_res, "gatewayLbl", 3, new Point(4, 151), new Size(67, 17), "Gateway:", autoSize: true);
            maskLbl           = new BaseLabel(_res, "maskLbl", 2, new Point(155, 75), new Size(4, 17), "Mask", autoSize: true);
            ipaddressLbl      = new BaseLabel(_res, "ipAddressLbl", 1, new Point(4, 75), new Size(80, 17), "IP Address:", autoSize: true);
            staticAddLbl      = new BaseLabel(_res, "staticAddLbl", point: new Point(3, 11), size: new Size(113, 20), text: "Static Address", autoSize: true);
            currNetAdDataLbl  = new BaseLabel(_res, "currNetAdDataLbl", 8, new Point(4, 75), new Size(169, 17), "Current NetAdapter Data:", autoSize: true);
            dynamicAddLbl     = new BaseLabel(_res, "dynamicAddLbl", 1, new Point(3, 11), new Size(133, 20), "Dynamic Address", autoSize: true);
            adaptersListLbl   = new BaseLabel(_res, "adaptersListLbl", 9, point: new Point(12, 329), new Size(112, 17), autoSize: true, text: "Adapters and IPs:");
            ipAddressesHlpBtn = new BaseButton(_res, "ipAddressesHlpBtn", 10, visStyleBackColor: true, point: new Point(564, 329), size: new Size(40, 23), text: "Help!");
            setDynamicIPBtn   = new BaseButton(_res, "setDynamicIPBtn", 6, point: new Point(7, 244), size: new Size(75, 23), visStyleBackColor: true, text: "Do Magic");
            setStaticIPBtn    = new BaseButton(_res, "setStaticIPBtn", 5, point: new Point(7, 244), size: new Size(75, 23), text: "Set Address:", visStyleBackColor: true);
            #endregion

            #region Panels
            staticPnl = new BaseFlowPanel(_res, "staticPnl", controls: new Control[] { gatewayTxtBox, ipAddTxtBox, maskTxtBox, dnsTxtBox, setStaticIPBtn, dnsLbl, gatewayLbl, maskLbl, ipaddressLbl, staticAddLbl },
                                          point: new Point(13, 17), size: new Size(282, 289), borderStyle: BorderStyle.Fixed3D);
            dynamicPnl = new BaseFlowPanel(_res, "dynamicPnl", 1, new Control[] { currNetAdDataLbl, selectedAdapterDataRchTxtBx, setDynamicIPBtn, dynamicAddLbl }, new Point(322, 17), new Size(282, 289), BorderStyle.Fixed3D);
            #endregion


            SuspendLayout();
            InitIPAddress();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>

        private void InitializeComponent()
        {
            #region Controls
            var regularBtnSize       = new Size(80, 23);
            var largeBtnSize         = new Size(120, 23);
            var defaultButtonPadding = new Padding(60, 10, 0, 5);
            var defTxtBoxPoint       = new Point(6, 57);
            var defTxtBoxSize        = new Size(135, 21);
            var defLblPoint          = new Point(3, 29);
            var defComboPoint        = new Point(6, 57);
            var defComboSize         = new Size(135, 21);
            var defPanelSize         = new Size(150, 100);

            selectConnBtn       = new BaseButton(_res, "selectConnBtn", visStyleBackColor: true, point: new Point(60, 20), margin: new Padding(60, 20, 0, 5), size: regularBtnSize, text: "Connect to Selected");
            selectEditBtn       = new BaseButton(_res, "selectEditBtn", visStyleBackColor: true, point: new Point(60, 58), margin: defaultButtonPadding, size: regularBtnSize, text: "Edit");
            selectRmvBtn        = new BaseButton(_res, "selectRmvBtn", visStyleBackColor: true, point: new Point(60, 96), margin: defaultButtonPadding, size: regularBtnSize, text: "Remove");
            vpnHelpBtn          = new BaseButton(_res, "vpnHelpBtn", 3, visStyleBackColor: true, point: new Point(100, 139), margin: new Padding(100, 15, 0, 5), size: regularBtnSize, text: "Help!");
            clearValsBtn        = new BaseButton(_res, "clearValsBtn", 5, visStyleBackColor: true, point: new Point(132, 96), size: new Size(120, 23), text: "Clear Values");
            saveConnBtn         = new BaseButton(_res, "saveConnBtn", 3, visStyleBackColor: true, point: new Point(74, 136), size: largeBtnSize, text: "Save and Connect");
            saveVpnNewBtn       = new BaseButton(_res, "saveVpnNewBtn", visStyleBackColor: true, point: new Point(6, 96), size: largeBtnSize, text: "Save New / Edited");
            vpnsTxtBox          = new BaseTextBox(_res, "vpnsTxtBox", 1, defTxtBoxPoint, defTxtBoxSize);
            vpnNameTxtBox       = new BaseTextBox(_res, "vpnNameTxtBox", 1, defTxtBoxPoint, defTxtBoxSize);
            selectedInfoTxtBox  = new BaseRichTextBox(_res, "selectedInfoTxtBox", 1, SystemColors.MenuText, Color.YellowGreen, new Point(6, 31), new Size(212, 134));
            selectedsLbl        = new BaseLabel(_res, "selectedsLbl", point: new Point(3, 10), size: new Size(108, 18), text: "Selected\'s Info:");
            currentVpnsLbl      = new BaseLabel(_res, "currentVpnsLbl", point: defLblPoint, size: new Size(103, 18), text: "Current VPNs:");
            nameVpnLbl          = new BaseLabel(_res, "nameVpnLbl", point: defLblPoint, size: new Size(52, 18), text: "Name:");
            addressVpnLbl       = new BaseLabel(_res, "addressVpnLbl", point: defLblPoint, size: new Size(66, 18), text: "Address:");
            ttypeVpnLbl         = new BaseLabel(_res, "tTypeVpnLbl", point: defLblPoint, size: new Size(92, 18), text: "Tunnel Type:");
            encryptLvlVpnLbl    = new BaseLabel(_res, "encryptLvlVpnLbl", point: defLblPoint, size: new Size(120, 18), text: "Encryption LEvel:");
            authMetLbl          = new BaseLabel(_res, "authMetLbl", point: defLblPoint, size: new Size(99, 18), text: "Auth. Method:");
            currentVpnsComBox   = new BaseComboBox(_res, "currentVpnsCombox", 2, defComboPoint, defComboSize);
            tTypeSelectCombBox  = new BaseComboBox(_res, "tTypeSelectComBox", 1, defComboPoint, defComboSize);
            encryLvlCombBox     = new BaseComboBox(_res, "encrLvlComBox", 2, defComboPoint, defComboSize);
            authMetCombBox      = new BaseComboBox(_res, "authMetComBox", 2, defComboPoint, defComboSize);
            availForAllCheckBox = new BaseCheckBox(_res, "availForAllCheckBox", visStyleBackColor: true, text: "Available for All Users", point: new Point(5, 67), size: new Size(169, 22));
            splitTunCheckBox    = new BaseCheckBox(_res, "splitTunCheckBox", visStyleBackColor: true, text: "Split Tunnel:", point: new Point(6, 17), size: new Size(103, 22));
            #endregion

            #region Panels
            bottomInfosPnl = new BaseFlowPanel(_res, "bottomInfosPnl", 2, new Control[] { currOpersPnl, currInfoPnl, currPnl }, new Point(12, 335), new Size(590, 175), borderStyle: BorderStyle.Fixed3D);
            currOpersPnl   = new BaseFlowPanel(_res, "currOpersPnl", 6, new Control[] { selectConnBtn, selectEditBtn, selectRmvBtn, vpnHelpBtn }, new Point(383, 3), new Size(200, 170), flow: FlowDirection.TopDown);
            vpnSettingsPnl = new BaseFlowPanel(_res, "vpnSettingsPnl", 3, new Control[] { namePnl, addressPnl, tunnelPnl, encryptionPnl, authPnl, btnsTopPnl }, new Point(12, 12), new Size(590, 306));
            currInfoPnl    = new BasePanel(_res, "currInfoPnl", 5, new Control[] { selectedInfoTxtBox, selectedsLbl }, new Point(150, 3), new Size(231, 170));
            currPnl        = new BasePanel(_res, "currPnl", 4, new Control[] { currentVpnsComBox, currentVpnsLbl }, new Point(3, 3), new Size(150, 170));
            namePnl        = new BasePanel(_res, "namePnl", 2, new Control[] { vpnsTxtBox, nameVpnLbl }, new Point(3, 3), defPanelSize);
            addressPnl     = new BasePanel(_res, "addressPnl", 0, new Control[] { vpnNameTxtBox, addressVpnLbl }, new Point(159, 3), defPanelSize);
            tunnelPnl      = new BasePanel(_res, "tunnelPnl", 2, new Control[] { tTypeSelectCombBox, ttypeVpnLbl }, new Point(315, 3), defPanelSize);
            encryptionPnl  = new BasePanel(_res, "encryptionPnl", 3, new Control[] { encryLvlCombBox, encryptLvlVpnLbl }, new Point(3, 109), defPanelSize);
            authPnl        = new BasePanel(_res, "authPnl", 4, new Control[] { authMetCombBox, authMetLbl }, new Point(159, 109), defPanelSize);
            btnsTopPnl     = new BasePanel(_res, "btnSopPnl", 5, new Control[] { clearValsBtn, saveConnBtn, saveVpnNewBtn, availForAllCheckBox, splitTunCheckBox }, new Point(315, 109), new Size(270, 197));
            #endregion

            SuspendLayout();
            InitVpnElements();
        }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            #region Controls
            var defButtonSize     = new Size(80, 23);
            var defTextBoxSize    = new Size(140, 20);
            var defTextBoxPadding = new Padding(40, 5, 3, 3);
            var defLabelPadding   = new Padding(40, 20, 3, 0);

            saveProxyBtn         = new BaseButton(_res, "saveProxyBtn", 8, visStyleBackColor: true, point: new Point(50, 336), margin: new Padding(50, 30, 3, 3), size: new Size(120, 23), text: "Save to File");
            saveNConnectProxyBtn = new BaseButton(_res, "saveNConnectProxyBtn", 9, visStyleBackColor: true, point: new Point(50, 382), margin: new Padding(50, 20, 3, 3), size: new Size(120, 23), text: "Save and Connect");
            proxyHelpBtn         = new BaseButton(_res, "proxyHelpBtn", 13, visStyleBackColor: true, point: new Point(140, 458), margin: new Padding(140, 50, 3, 3), size: new Size(60, 23), text: "Help!");
            connectToSavedBtn    = new BaseButton(_res, "connectToSavedBtn", 2, visStyleBackColor: true, point: new Point(70, 320), margin: new Padding(70, 20, 70, 3), size: new Size(80, 23), text: "Connect To");
            editSavedBtn         = new BaseButton(_res, "editSavedBtn", 3, visStyleBackColor: true, point: new Point(70, 361), margin: new Padding(70, 15, 70, 3), size: new Size(80, 23), text: "Edit");
            deleteSavedBtn       = new BaseButton(_res, "deleteSavedBtn", 4, visStyleBackColor: true, point: new Point(70, 402), margin: new Padding(70, 15, 70, 3), size: new Size(80, 23), text: "Delete");
            selectTextFileBtn    = new BaseButton(_res, "selectTextFileBtn", visStyleBackColor: true, point: new Point(20, 78), margin: new Padding(20, 40, 20, 3), size: new Size(100, 23), text: "Select Text File");
            helpImportBtn        = new BaseButton(_res, "helpImportBtn", 2, visStyleBackColor: true, point: new Point(30, 119), margin: new Padding(30, 15, 30, 3), size: new Size(80, 23), text: "Help!");
            ipAddyLbl            = new BaseLabel(_res, "ipAddyLbl", 0, new Point(40, 20), new Size(83, 18), "IP Address:", autoSize: true, padding: defLabelPadding);
            portLbl             = new BaseLabel(_res, "portLbl", 11, new Point(40, 86), new Size(40, 18), "Port:", autoSize: true, padding: defLabelPadding);
            passLbl             = new BaseLabel(_res, "passLbl", 4, new Point(40, 218), new Size(79, 18), "Password:"******"uNameLbl", 2, new Point(40, 152), new Size(81, 18), "Username:"******"proxyInfoLbl", 6, new Point(10, 92), new Size(114, 18), "Info of Selected:", autoSize: true, padding: new Padding(10, 20, 10, 0));
            savedProxiesLbl     = new BaseLabel(_res, "savedProxiesLbl", 5, new Point(10, 20), new Size(107, 18), "Saved Proxies:", autoSize: true, padding: new Padding(10, 20, 3, 0));
            importProxiesLbl    = new BaseLabel(_res, "importProxiesLbl", 1, new Point(18, 20), new Size(104, 18), "Import Proxies", autoSize: true, padding: new Padding(18, 20, 0, 0));
            ipAddyTxtBox        = new BaseTextBox(_res, "ipAddyTxtBox", 1, new Point(40, 43), defTextBoxSize, padding: defTextBoxPadding);
            portTxtBox          = new BaseTextBox(_res, "portTxtBox", 12, new Point(40, 109), defTextBoxSize, padding: defTextBoxPadding);
            uNameTxtBox         = new BaseTextBox(_res, "uNameTxtBox", 3, new Point(40, 175), defTextBoxSize, padding: defTextBoxPadding);
            passTextBox         = new BaseTextBox(_res, "passTextBox", 5, new Point(40, 241), defTextBoxSize, padding: defTextBoxPadding);
            authReqChckBox      = new BaseCheckBox(_res, "authReqChckBox", 10, true, "Authorization Required", new Point(40, 284), new Size(151, 19), margin: new Padding(40, 20, 3, 3));
            savedProxiesCombBox = new BaseComboBox(_res, "savedProxiesCombBox", 1, new Point(10, 48), new Size(180, 21), new Padding(10, 10, 3, 3));
            proxyInfoTxtBox     = new BaseRichTextBox(_res, "proxyInfoTxtBox", 0, SystemColors.MenuText, Color.GreenYellow, new Point(10, 120), new Size(200, 177), margin: new Padding(10, 10, 10, 3));
            #endregion

            #region Panels
            importProxiesPnl = new BaseFlowPanel(_res, "importProxiesPnl", 1, new Control[] { importProxiesLbl, selectTextFileBtn, helpImportBtn }, new Point(12, 12), new Size(140, 498), borderStyle: BorderStyle.Fixed3D, flow: FlowDirection.TopDown);
            savedProxiesPnl  = new BaseFlowPanel(_res, "savedProxiesPnl", 1, new Control[] { savedProxiesLbl, savedProxiesCombBox, proxyInfoLbl, proxyInfoTxtBox, connectToSavedBtn, editSavedBtn, deleteSavedBtn }, new Point(158, 12), new Size(220, 498), borderStyle: BorderStyle.Fixed3D, flow: FlowDirection.TopDown);
            addNewProxyPnl   = new BaseFlowPanel(_res, "addNewProxyPnl", 0, new Control[] { ipAddyLbl, ipAddyTxtBox, portLbl, portTxtBox, uNameLbl, uNameTxtBox, passLbl, passTextBox, authReqChckBox, saveProxyBtn, saveNConnectProxyBtn, proxyHelpBtn },
                                                 new Point(384, 12), new Size(220, 498), borderStyle: BorderStyle.Fixed3D, flow: FlowDirection.TopDown);
            #endregion

            SuspendLayout();
            InitProxy();
        }