当前位置: 首页>>代码示例>>C#>>正文


C# clsDBQueryManager.SelectPrivateProxyData方法代码示例

本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectPrivateProxyData方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectPrivateProxyData方法的具体用法?C# clsDBQueryManager.SelectPrivateProxyData怎么用?C# clsDBQueryManager.SelectPrivateProxyData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseLib.clsDBQueryManager的用法示例。


在下文中一共展示了clsDBQueryManager.SelectPrivateProxyData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetPrivateProxies

        public List<string> GetPrivateProxies()
        {
            List<string> lst_Proxies = new List<string>();
            try
            {
                clsDBQueryManager setting = new clsDBQueryManager();
                DataSet ds = setting.SelectPrivateProxyData();
                if (ds.Tables != null && ds.Tables["tb_Proxies"].Rows.Count > 0)
                {
                    foreach (DataRow dRow in ds.Tables["tb_Proxies"].Rows)
                    {
                        string Proxy = dRow.ItemArray[0].ToString() + ":" + dRow.ItemArray[1].ToString() + ":" + dRow.ItemArray[2].ToString() + ":" + dRow.ItemArray[3].ToString();
                        lst_Proxies.Add(Proxy);
                    }
                }
            }
            catch { }

            return lst_Proxies;
        }
开发者ID:sumitglobussoft,项目名称:GramDominator-2.0,代码行数:20,代码来源:ProxyUtilitiesFromDataBase.cs

示例2: StartSignUpMultithreaded

        private void StartSignUpMultithreaded()
        {
            try
            {
                clsDBQueryManager SetDb = new clsDBQueryManager();
                DataSet ds = new DataSet();
                //bool UsePublicProxy = false;
                if (chkboxPublicProxy.Checked)
                {
                    ds = SetDb.SelectPublicProxyData();
                }
                else if (chkboxPrivateProxy.Checked)
                {
                    ds = SetDb.SelectPrivateProxyData();
                }

                if (chkboxUseFakeEmailAccounts.Checked)
                {
                    listEmails = Globals.FakeEmailList;
                }

                int numberOfThreads = 10;

                if (Globals.IdCheck.IsMatch(txtNumberOfThreads.Text) && !string.IsNullOrEmpty(txtNumberOfThreads.Text))
                {
                    numberOfThreads = int.Parse(txtNumberOfThreads.Text);
                }

                TwitterSignup.TwitterSignUp twitterSignUp = new TwitterSignup.TwitterSignUp();

                int counter_Name = 0;
                int counter_Username = 0;

                listEmails = listEmails.Distinct().ToList();

                if (listEmails.Count > 0)
                {
                    foreach (string email in listEmails)
                    {
                        string Proxy = string.Empty;
                        if (chkboxPublicProxy.Checked)
                        {
                            try
                            {
                                if (ds.Tables[0].Rows.Count != 0)
                                {
                                    int index = RandomNumberGenerator.GenerateRandom(0, ds.Tables[0].Rows.Count);
                                    DataRow dr = ds.Tables[0].Rows[index];
                                    Proxy = dr.ItemArray[0].ToString() + ":" + dr.ItemArray[1].ToString() + ":" + dr.ItemArray[2].ToString() + ":" + dr.ItemArray[3].ToString();
                                }
                                else
                                {
                                    AddToListAccountsLogs("Please Uplaod Public Proxies");
                                    break;
                                }
                            }
                            catch (Exception ex)
                            {
                                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> Getting Public Proxy From Data Bas --> " + ex.Message, Globals.Path_AccountCreatorErrorLog);
                                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> Getting Public Proxy From Data Base >>>> " + ex.Message + " || DateTime :- " + DateTime.Now, Globals.Path_TwtErrorLogs);
                            }
                        }
                        else if (chkboxPrivateProxy.Checked)
                        {
                            if (ds.Tables[0].Rows.Count != 0)
                            {
                                int index = RandomNumberGenerator.GenerateRandom(0, ds.Tables[0].Rows.Count);
                                DataRow dr = ds.Tables[0].Rows[index];
                                Proxy = dr.ItemArray[0].ToString() + ":" + dr.ItemArray[1].ToString() + ":" + dr.ItemArray[2].ToString() + ":" + dr.ItemArray[3].ToString();
                            }
                            else
                            {
                                AddToListAccountsLogs("Please Upload Private Proxy");
                                break;
                            }
                        }


                        if (listUserNames.Count > 0)
                        {
                            if (counter_Username < listUserNames.Count)
                            {
                            }
                            else
                            {
                                AddToListAccountsLogs("*********** /n All Usernames have been taken /n ***********");
                                break;
                            }
                        }
                        else
                        {
                            AddToListAccountsLogs("Please Upload Usernames To Create Twitter Accounts");
                            break;
                        }


                        if (listNames.Count > 0)
                        {
                            if (counter_Name < listNames.Count)
                            {
//.........这里部分代码省略.........
开发者ID:prog-moh,项目名称:twtboard,代码行数:101,代码来源:frmMain-New+UI.cs

示例3: chkboxPrivateProxy_CheckedChanged

        private void chkboxPrivateProxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chkboxPrivateProxy.Checked == true)
                {
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPrivateProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        MessageBox.Show("Please Import Private Proxy Files. We Are redirecting you to Proxy Tab");
                        tabMain.SelectedIndex = 7;
                    }
                    AddToListAccountsLogs(ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase");
                    AddToGeneralLogs(ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase");
                }
            }
            catch (Exception ex)
            {
                AddToListAccountsLogs(ex.Message);
            }
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:27,代码来源:frmMain-New+UI.cs

示例4: chk_RetweetAndFavoritePrivateproxy_CheckedChanged

        private void chk_RetweetAndFavoritePrivateproxy_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chk_RetweetAndFavoritePrivateproxy.Checked == true)
                {
                    UploadPrivateProxy();
                    chk_RetweetAndFavoritePublicproxy.Checked = false;
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPrivateProxyData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        //MessageBox.Show("Please Import Private Proxy Files. We Are redirecting you to Proxy Tab");
                        //Tb_AccountManager.SelectedIndex = 5;
                        DialogResult dr = MessageBox.Show("Please Import Private Proxy Files. We Are redirecting you to Proxy Tab", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                        if (dr == DialogResult.Yes)
                        {
                            Tb_AccountManager.SelectedIndex = 5;
                        }
                        else
                        {
                            //do whatever you want
                        }
                    }
                    AddToLog_RetweetAndFavorite("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase ]");
                    AddToGeneralLogs("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Private Proxies loaded from DataBase ]");

                }
            }
            catch (Exception ex)
            {
                //AddToLog_RetweetAndFavorite(ex.Message);
            }
        }
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:39,代码来源:frmMain_NewUI.cs


注:本文中的BaseLib.clsDBQueryManager.SelectPrivateProxyData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。