/// <summary> /// 点击监控产线设置, 设置监控软件的启动路径 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MonitorSet_Click(object sender, EventArgs e) { var MonitorPath = Properties.Settings.Default.MonitorPath; var dlg = new FileSelectorSettings(MonitorPath); var res = dlg.ShowDialog(); if (res == DialogResult.OK) { Properties.Settings.Default.MonitorPath = dlg.FileSelectorPath; Properties.Settings.Default.Save(); } }
/// <summary> /// 点击"产线监控"按钮,调用客户选择的相应目录下面的.exe文件,进行监控 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ProductionLineMonitoring_Click(object sender, EventArgs e) { var MonitorPath = Properties.Settings.Default.MonitorPath; if (MonitorPath != "") { StartProcess(MonitorPath); } else { var dlg = new FileSelectorSettings(MonitorPath); var res = dlg.ShowDialog(); if (res == DialogResult.OK) { Properties.Settings.Default.MonitorPath = dlg.FileSelectorPath; Properties.Settings.Default.Save(); } } }
/// <summary> /// 点击"视频会议"按钮,调用酷虎选择的相应目录下面的.exe文件,进行视频会议 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void VideoConference_Click(object sender, EventArgs e) { //StartProcess(System.Windows.Forms.Application.StartupPath + "\\osk.exe", "osk"); var VideoConferencePath = Properties.Settings.Default.VideoConferencePath; if (VideoConferencePath != "") { StartProcess(VideoConferencePath); } else { var dlg = new FileSelectorSettings(VideoConferencePath); var res = dlg.ShowDialog(); if (res == DialogResult.OK) { Properties.Settings.Default.VideoConferencePath = dlg.FileSelectorPath; Properties.Settings.Default.Save(); } } }