예제 #1
0
 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();
     }
 }
예제 #2
0
 public FrmIpConfig()
 {
     InitializeComponent();
     this.Disposed += FrmIpConfig_Disposed;
     DMSDK.DM_Init();
     DMSDK.DM_PlayerInit(ucPbx1.Handle);
 }
예제 #3
0
 public FrmMeasureTemperConfig()
 {
     InitializeComponent();
     DMSDK.DM_Init();
     DMSDK.DM_PlayerInit(pbxScreen.Handle);
     this.Disposed += FrmMeasureTemperConfig_Disposed;
 }
예제 #4
0
 public FrmSystemConfig()
 {
     InitializeComponent();
     DMSDK.DM_Init();
     DMSDK.DM_PlayerInit(pbxVideo.Handle);
     trbLocation.Value = 5;
     lbltrbValue.Text  = trbLocation.Value.ToString();
     this.Disposed    += FrmSystemConfig_Disposed;
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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();
 }
예제 #7
0
 public FrmTemperParamConfig()
 {
     InitializeComponent();
     DMSDK.DM_Init();
     this.Disposed += FrmTemperParamConfig_Disposed;
 }
예제 #8
0
 public FrmMaintain()
 {
     InitializeComponent();
     DMSDK.DM_Init();
     this.Disposed += FrmMaintain_Disposed;
 }
예제 #9
0
 public FrmImageConfig()
 {
     InitializeComponent();
     DMSDK.DM_Init();
 }
예제 #10
0
 public FrmAlarmConfig()
 {
     InitializeComponent();
     DMSDK.DM_Init();
     this.Disposed += FrmAlarmConfig_Disposed;
 }
예제 #11
0
 public FrmCameraNetConfig()
 {
     InitializeComponent();
     this.Disposed += FrmCameraNetConfig_Disposed;
     DMSDK.DM_Init();
 }