本文整理汇总了C#中CMModel.DBManager.GetTotalContactCount方法的典型用法代码示例。如果您正苦于以下问题:C# DBManager.GetTotalContactCount方法的具体用法?C# DBManager.GetTotalContactCount怎么用?C# DBManager.GetTotalContactCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMModel.DBManager
的用法示例。
在下文中一共展示了DBManager.GetTotalContactCount方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsMaximumContactExeed
private bool IsMaximumContactExeed(List<ContactDB> list)
{
int moreContactCount = list.Count();
DBManager db = new DBManager();
currentContactNumber = db.GetTotalContactCount();
if (currentContactNumber + moreContactCount > ContactDB.MAX_CONTACT)
{
DownloadControllerAndData controllerAndData = new DownloadControllerAndData
{
Controller = this,
ListData = list
};
NotifyDownloadStatus(DownloadStatus.MAXIMUM_CONTACT_EXEED, controllerAndData);
return true;
}
return false;
}
示例2: GetTotalContactCount
public int GetTotalContactCount()
{
DBManager db = new DBManager();
return db.GetTotalContactCount();
}
示例3: IsMaximumContactExeed
private bool IsMaximumContactExeed(List<CMData.Contact> list)
{
int moreContactCount = list.Count();
DBManager db = new DBManager();
currentContactNumber = db.GetTotalContactCount();
var totalContacts = currentContactNumber + moreContactCount;
if (currentContactNumber == ContactDB.MAX_LIMITATION)
{
DownloadControllerAndData controllerAndData = new DownloadControllerAndData
{
Controller = this,
ListData = list
};
NotifyDownloadStatus(DownloadStatus.EXCEED_MAXIMUM_LIMIT_CONTACT, controllerAndData);
return true;
}
else
{
if (totalContacts > ContactDB.MAX_CONTACT)
{
DownloadControllerAndData controllerAndData = new DownloadControllerAndData
{
Controller = this,
ListData = list
};
NotifyDownloadStatus(DownloadStatus.EXCEED_CURRENT_LIMIT_CONTACT, controllerAndData);
return true;
}
}
return false;
}
示例4: GetContactCount
public int GetContactCount(string search)
{
DBManager db = new DBManager();
if (String.IsNullOrEmpty(search))
{
return db.GetTotalContactCount();
}
return db.GetContactCount(search);
}