Care.Views.Common.CommentView.UpdateCommentCount C# (CSharp) Method

UpdateCommentCount() private method

private UpdateCommentCount ( int num ) : void
num int
return void
        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();
                    });
                }
            }
        }