예제 #1
0
        private void 添加视频ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectDataForm selectForm = new SelectDataForm("请拖入发送的视频信息(只支持MP4格式):", "视频");

            if (selectForm.ShowDialog() == DialogResult.OK)
            {
                MessageType type = new MessageType();
                type.Id         = 0;
                type.SendType   = "视频";
                type.TxtContent = SelectDataForm.returnValue;
                BindGrad(type);
            }
        }
예제 #2
0
        private void 添加文本ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectDataForm selectForm = new SelectDataForm("请输入要发送的文字信息:", "文本");

            if (selectForm.ShowDialog() == DialogResult.OK)
            {
                MessageType type = new MessageType();
                type.Id         = 0;
                type.SendType   = "文本";
                type.TxtContent = SelectDataForm.returnValue;
                BindGrad(type);
            }
        }