本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectPrivateIPData方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectPrivateIPData方法的具体用法?C# clsDBQueryManager.SelectPrivateIPData怎么用?C# clsDBQueryManager.SelectPrivateIPData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseLib.clsDBQueryManager
的用法示例。
在下文中一共展示了clsDBQueryManager.SelectPrivateIPData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetPrivateProxies
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: chk_RetweetAndFavoritePrivateIP_CheckedChanged
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);
}
}