private void ToolStripMenuItem7_Click(object sender, EventArgs e) { EnterForm input = new EnterForm(); input.Caption = "请输入分组名称"; DialogResult result = input.ShowDialog(); if (input.Value != "" && result == DialogResult.OK) { this.GetSelectedListItem().ForEach(c => { this._appMainAdapterHandler.RemoteSetGroupName(c.SessionSyncContext, input.Value); }); } }
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) { this.GetSelectedListItem().ForEach(c => { this._appMainAdapterHandler.RemoteOpenUrl(c.SessionSyncContext, input.Value); }); } }
private void ModifyRemark(object sender, EventArgs e) { EnterForm f = new EnterForm(); f.Caption = "请输入备注名称"; DialogResult result = f.ShowDialog(); if (f.Value != "" && result == DialogResult.OK) { this.GetSelectedListItem().ForEach(c => { this._appMainAdapterHandler.RemoteSetRemarkInformation(c.SessionSyncContext, f.Value); }); } }
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) { MessageBoxHelper.ShowBoxExclamation("输入的网址不合法"); return; } this.GetSelectedDesktopView().ForEach(c => { this._appMainAdapterHandler.RemoteHttpDownloadExecute(c.SessionSyncContext, input.Value); }); } }