StableVersion4.3/HL_DynamicElectrocardiogram/Form_ECGScreenWall.cs

67 lines
2.0 KiB
C#

using HL_FristAidPlatform_Public;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HL_FristAidPlatform_DynamicElectrocardiogram
{
public partial class Form_ECGScreenWall : Form
{
public Form_ECGScreenWall()
{
InitializeComponent();
}
private void Form_ECGScreenWall_Load(object sender, EventArgs e)
{
string filename = Application.StartupPath + "\\ECGSHISHI\\Hwyl.ECG_New.exe";
string[] array = new string[0];
array = new string[7]
{
//"eff2cfba06472febb1916bfd3b2297b7",
Information.Hospital.Ecg_OrgCode,
"1",
"1",
Information.Hospital.Ecg_AppId,
Information.Hospital.Ecg_AuthorKey,
//"DBXRMYYGLY",
//"DBXRMYYGLY",
"0",
null
};
StartProcess(filename, array);
}
public bool StartProcess(string filename, string[] args)
{
try
{
string text = "";
foreach (string text2 in args)
{
text = text + text2 + " ";
}
text = text.Trim();
Process process = new Process();
ProcessStartInfo processStartInfo2 = (process.StartInfo = new ProcessStartInfo(filename, text));
process.StartInfo.UseShellExecute = false;
process.Start();
return true;
}
catch (Exception ex)
{
MessageBox.Show("启动应用程序时出错!原因:" + ex.Message);
}
return false;
}
}
}