示例#1
0
 private void showIsRunning()
 {
     DMSDK.DM_ClearAllArea(StaticClass.tempConnect);
     DMSDK.DM_ClearAllLine(StaticClass.tempConnect);
     DMSDK.DM_ClearAllSpot(StaticClass.tempConnect);
     sqlCreate.Delete_Line(StaticClass.Temper_CameraId, "L1", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S2", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S3", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S4", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S5", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A6", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A7", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A8", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A9", StaticClass.DataBaseName);
     Thread.Sleep(10000);
     Get_Area_Param();
 }
示例#2
0
 private void showIsRunning(object sender, DoWorkEventArgs e)
 {
     DMSDK.DM_ClearAllArea(tempConnect);
     DMSDK.DM_ClearAllLine(tempConnect);
     DMSDK.DM_ClearAllSpot(tempConnect);
     sqlCreate.Delete_Line(StaticClass.Temper_CameraId, "L1", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S2", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S3", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S4", StaticClass.DataBaseName);
     sqlCreate.Delete_Spot(StaticClass.Temper_CameraId, "S5", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A6", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A7", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A8", StaticClass.DataBaseName);
     sqlCreate.Delete_Area(StaticClass.Temper_CameraId, "A9", StaticClass.DataBaseName);
     Invoke(new MethodInvoker(delegate()
     {
         Get_Area_Param();
     }));
 }