示例#1
0
        private void ModifyRemark(object sender, EventArgs e)
        {
            EnterForm f = new EnterForm();

            f.Caption = "请输入备注名称";
            DialogResult result = f.ShowDialog();

            if (f.Value != "" && result == DialogResult.OK)
            {
                byte[] data = MessageHelper.CopyMessageHeadTo(MessageHead.S_MAIN_REMARK, f.Value);
                SelectedSend(data);
            }
        }
示例#2
0
        private void toolStripMenuItem6_Click_1(object sender, EventArgs e)
        {
            EnterForm input = new EnterForm();

            input.Caption = "请输入要打开的网页地址!";
            DialogResult result = input.ShowDialog();

            if (input.Value != "" && result == DialogResult.OK)
            {
                byte[] data = MessageHelper.CopyMessageHeadTo(MessageHead.S_MAIN_OPEN_WEBURL,
                                                              input.Value);
                SelectedSend(data);
            }
        }
示例#3
0
        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            EnterForm input = new EnterForm();

            input.Caption = "可执行文件的下载地址";
            DialogResult result = input.ShowDialog();

            if (input.Value != "" && result == DialogResult.OK)
            {
                if (input.Value.IndexOf("http://") == -1 && input.Value.IndexOf("https://") == -1)
                {
                    MessageBox.Show("输入的网址不合法", "提示", 0, MessageBoxIcon.Exclamation);
                    return;
                }

                byte[] data = MessageHelper.CopyMessageHeadTo(MessageHead.S_MAIN_HTTPDOWNLOAD,
                                                              input.Value);
                SelectedDesktopViewSend(data);
            }
        }