新增客户端异地更新服务器的安装包功能

This commit is contained in:
hsl20
2017-03-04 21:56:20 +08:00
parent d277f6a289
commit f104b2d9bd

View File

@@ -190,8 +190,19 @@ namespace 软件系统客户端模版
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//暂不支持,期待下个版本
MessageBox.Show("暂不支持该特性");
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Multiselect = true;
if(ofd.ShowDialog()==DialogResult.OK)
{
using (FormFileOperate fUpload = new FormFileOperate(new System.Net.IPEndPoint(
System.Net.IPAddress.Parse(UserClient.ServerIp),CommonLibrary.CommonLibrary.Port_Update_Remote),
ofd.FileNames, "", "", ""))
{
fUpload.ShowDialog();
}
}
}
}
#endregion