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

            return lst_Proxies;
        }
コード例 #2
0
        public List <string> GetPrivateProxies()
        {
            List <string> lst_Proxies = new List <string>();

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

            return(lst_Proxies);
        }
コード例 #3
0
ファイル: frmMain_NewUI.cs プロジェクト: prog-moh/twtboard
        private void chk_RetweetAndFavoritePrivateIP_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if (chk_RetweetAndFavoritePrivateIP.Checked == true)
                {
                    UploadPrivateIP();
                    chk_RetweetAndFavoritePublicIP.Checked = false;
                    clsDBQueryManager SetDb = new clsDBQueryManager();
                    DataSet ds = new DataSet();
                    ds = SetDb.SelectPrivateIPData();
                    if (ds.Tables[0].Rows.Count > 0)
                    {

                    }
                    else
                    {
                        //MessageBox.Show("Please Import Private IP Files. We Are redirecting you to IP Tab");
                        //Tb_AccountManager.SelectedIndex = 5;
                        DialogResult dr = MessageBox.Show("Please Import Private IP Files. We Are redirecting you to IP 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);
            }
        }