Beispiel #1
0
        public frmMain()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
            this.Menu = mainMenu1;
            ControlExtensions.DoubleBuffered(lvProxies, true);

            API.HWID = HWID.Generate();

            //Load Ports
            var _ports = File.ReadAllLines(Environment.CurrentDirectory + "\\assets\\ports.txt");

            foreach (string _port in _ports)
            {
                Lists.Ports.Add(_port);
            }

            //Load sources
            var _sources = File.ReadAllLines(Environment.CurrentDirectory + "\\assets\\sources.txt");

            foreach (string _source in _sources)
            {
                Lists.Sources.Add(new Source(_source));
            }
            lblTotalSources.Text = string.Format("Total sources: {0}", Lists.Sources.Count);

            Helpers.logfile = string.Format("{0}\\logs\\{1}", Environment.CurrentDirectory, Helpers.UnixTimeNow());

            lvwColumnSorter = new ListViewColumnSorter();
            lvProxies.ListViewItemSorter = lvwColumnSorter;
            lvProxies.Sorting            = System.Windows.Forms.SortOrder.Ascending;
            lvProxies.AutoArrange        = true;

            lvwColumnSorter._SortModifier = ListViewColumnSorter.SortModifiers.SortByText;

            cbTask.SelectedIndex++;
            cbLocationFilter.SelectedIndex++;
            cbTypeFilter.SelectedIndex++;

            Lists.Keywords.Add("Daily Free SSL Proxies");
        }