private void UpdateCommentCount(int num)
{
if (m_itemViewModel != null)
{
int nCount = 0;
try
{
nCount = int.Parse(m_itemViewModel.CommentCount);
}
catch (System.Exception ex)
{
nCount = 0;
}
if (num > nCount)
{
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
m_itemViewModel.CommentCount = num.ToString();
});
}
}
}