Care.Views.Common.CommitView.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)
        {
            if (String.IsNullOrEmpty(txtInput.Text))
            {
                MessageBox.Show("据说要智商超过250才能看到您写的字?", ">_<", MessageBoxButton.OK);
                return;
            }
            // 注意,此处要分两种情况
            // 1.带有图片的发送
            // 2.不带图片的发送
            // 我知道多年以后看到这段注释我一定会嫌自己啰嗦
            // 但是还是要说明,有的api会把带图片的和不带图片的放在两种api路径里,要注意分别处理!
            if (m_type == EntryType.SinaWeibo)
            {
                SinaWeiboSend();
            }
            else if (m_type == EntryType.Renren)
            {
                RenrenSend();
            }
            else if (m_type == EntryType.Douban)
            {
                DoubanSend();
            }
        }