private void btnConfirm_Click(object sender, EventArgs e) { if (btnConfirm.Text == "重新连接") { if (DMSDK.DM_CheckOnline("192.168.1.2", 80) < 0) { MessageBox.Show("未检测到在线仪器,请检查后重试!"); btnConfirm.Text = "重新连接"; } else { DMSDK.DM_Init(); temp_OperateHandle = DMSDK.DM_Connect(ucPbx1.Handle, "192.168.1.2", 80); temp_ConnectHandle = DMSDK.DM_OpenMonitor(ucPbx1.Handle, "192.168.1.2", 5000, 0); DMSDK.DM_GetNetmask(temp_OperateHandle, SubMask); DMSDK.DM_GetGateway(temp_OperateHandle, GateWay); btnConfirm.Text = "确认修改"; } } else if (btnConfirm.Text == "确认修改") { if (SubMask.ToString() == "" || GateWay.ToString() == "") { MessageBox.Show("参数异常!请重试!"); return; } DMSDK.DM_SetIPAddr(temp_OperateHandle, ipAddressTextBox1.IPAdd.ToString(), SubMask.ToString(), GateWay.ToString()); MessageBox.Show("修改完成"); this.Close(); } }
public FrmIpConfig() { InitializeComponent(); this.Disposed += FrmIpConfig_Disposed; DMSDK.DM_Init(); DMSDK.DM_PlayerInit(ucPbx1.Handle); }
public FrmMeasureTemperConfig() { InitializeComponent(); DMSDK.DM_Init(); DMSDK.DM_PlayerInit(pbxScreen.Handle); this.Disposed += FrmMeasureTemperConfig_Disposed; }
public FrmSystemConfig() { InitializeComponent(); DMSDK.DM_Init(); DMSDK.DM_PlayerInit(pbxVideo.Handle); trbLocation.Value = 5; lbltrbValue.Text = trbLocation.Value.ToString(); this.Disposed += FrmSystemConfig_Disposed; }
private void FrmIpConfig_Load(object sender, EventArgs e) { if (DMSDK.DM_CheckOnline("192.168.1.2", 80) < 0) { MessageBox.Show("未检测到在线仪器,请检查后重试!"); btnConfirm.Text = "重新连接"; } else { DMSDK.DM_Init(); temp_OperateHandle = DMSDK.DM_Connect(ucPbx1.Handle, "192.168.1.2", 80); temp_ConnectHandle = DMSDK.DM_OpenMonitor(ucPbx1.Handle, "192.168.1.2", 5000, 0); DMSDK.DM_GetNetmask(temp_OperateHandle, SubMask); DMSDK.DM_GetGateway(temp_OperateHandle, GateWay); } }
private void FrmConfig_Load(object sender, EventArgs e) { DMSDK.DM_Init(); DMSDK.DM_PlayerInit(uCPbx.Handle); StaticClass.tempIntPtr = uCPbx.Handle; if (DMSDK.DM_CheckOnline(StaticClass.Temper_Ip, 5000) < 0) { MessageBox.Show("该探测器未连接,无法进行其他设置!"); } else { StaticClass.tempConnect = DMSDK.DM_Connect(uCPbx.Handle, StaticClass.Temper_Ip, 80); if (StaticClass.tempConnect > 0) { StaticClass.tempMonitor = DMSDK.DM_OpenMonitor(uCPbx.Handle, StaticClass.Temper_Ip, 5000, 0); } } grpConfig.Text = "网络设置"; btnNetConfig.Tag = 1; btnNetConfig.BackColor = Color.Yellow; btnNetConfig.PerformClick(); }
public FrmTemperParamConfig() { InitializeComponent(); DMSDK.DM_Init(); this.Disposed += FrmTemperParamConfig_Disposed; }
public FrmMaintain() { InitializeComponent(); DMSDK.DM_Init(); this.Disposed += FrmMaintain_Disposed; }
public FrmImageConfig() { InitializeComponent(); DMSDK.DM_Init(); }
public FrmAlarmConfig() { InitializeComponent(); DMSDK.DM_Init(); this.Disposed += FrmAlarmConfig_Disposed; }
public FrmCameraNetConfig() { InitializeComponent(); this.Disposed += FrmCameraNetConfig_Disposed; DMSDK.DM_Init(); }