private void FrmMaintain_Load(object sender, EventArgs e) { tempConnect = DMSDK.DM_Connect(this.Handle, StaticClass.Temper_Ip, 80);// if (tempConnect < 0) { MessageBox.Show("连接失败,请重试!"); return; } DMSDK.DM_GetSystemInfo(tempConnect, systemInfo); lblSystemInfo.Text = systemInfo.ToString(); }
private void FrmMaintain_Load(object sender, EventArgs e) { if (StaticClass.tempConnect < 0) { MessageBox.Show("连接失败,请重新连接!"); foreach (Control control in this.Controls) { control.Enabled = false; } return; } DMSDK.DM_GetSystemInfo(StaticClass.tempConnect, systemInfo); lblSystemInfo.Text = systemInfo.ToString(); }