Esempio n. 1
0
        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(txtNordAccount.Text))
            {
                var account = txtNordAccount.Text.Split(':');
                _nordNetworkCredential = new NetworkCredential(account[0], account[1]);
                _currentNordServer     = NordServer.ServersList[0];
            }

            if (_nordNetworkCredential == null && ProxyList.Count == 0)
            {
                MessageBox.Show("load proxy ServersList or set nord account");
                return;
            }

            if (ComboList.Count == 0)
            {
                MessageBox.Show("load ComboList");
                return;
            }

            if (ReferenceEquals(lblStatus.Content, "Status : Checking Proxies..."))
            {
                MessageBox.Show("wait to complete checking proxies");
                return;
            }

            ThreadGun = new ThreadGun <ComboItem>((Action <ComboItem>)Config, ComboList, (int)sldThreadCount.Value,
                                                  CompletedEvent,
                                                  ExceptionOccurredEvent).FillingMagazine();
            ThreadGun.Start();
            lblStatus.Content = "Status : Process Started...";

            new Thread(Status).Start();
        }
Esempio n. 2
0
 private void btnThreadGun_Click(object sender, EventArgs e)
 {
     lstThreadGunResult.Items.Clear();
     _tg = new ThreadGun <int>((Action <int>)ActionThreadGun, Enumerable.Range(1, NumCount), 20,
                               tg_ExceptionOccurred);
     _tg.Completed += tg_Completed;
     _tg.FillingMagazine();
     _tg.Start();
 }