Care.Views.Common.PostCommentView.send_Click C# (CSharp) Method

send_Click() private method

private send_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void send_Click(object sender, EventArgs e)
        {
            String commentText = StatusMessageBox.Text;
            if (String.IsNullOrEmpty(commentText))
            {
                MessageBox.Show("据说要智商超过250才能看到您写的字?", ">_<", MessageBoxButton.OK);
                return;
            }
            else if (commentText.Length > m_maxLenth)
            {
                MessageBox.Show("内容超出最大长度!");
                return;
            }

            EntryType tp = m_itemViewModel.Type;
            if (tp == EntryType.SinaWeibo)
            {
                SinaWeiboSend();
            }
            else if (tp == EntryType.Renren)
            {
                RenrenSend();
            }
            else if (tp == EntryType.Douban)
            {
                DoubanSend();
            }
        }