public VsPlayback() { try { InitializeComponent(); engine = new VsCoreEngine(new VsServiceConnect(), vlCplayer1); engine.connectData(); setTimePeriod(DateTime.Now, DateTime.Now); setAllCam(camList); this.Load += new EventHandler(VsPlayback_Load); // Initial application core VsSplasher.Status = "Load application setting..."; System.Threading.Thread.Sleep(1500); VsSplasher.LoginSerivce(new getAllcam(this.getAllCam), new setServerURL(this.setServerUrl)); while (VsSplasher.Blocked) { System.Threading.Thread.Sleep(100); } if (!VsSplasher.Connected) { this.Hide(); bCancel = true; } VsSplasher.Hide(); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; } }
public VsPlayback() { try { InitializeComponent(); engine = new VsCoreEngine(new VsServiceConnect(), vlCplayer1); engine.connectData(); setTimePeriod(DateTime.Now, DateTime.Now); setAllCam(camList); this.Load += new EventHandler(VsPlayback_Load); // Initial application core VsSplasher.Status = "Load application setting..."; System.Threading.Thread.Sleep(1500); VsSplasher.LoginSerivce(new getAllcam(this.getAllCam), new setServerURL(this.setServerUrl)); while (VsSplasher.Blocked) System.Threading.Thread.Sleep(100); if (!VsSplasher.Connected) { this.Hide(); bCancel = true; } VsSplasher.Hide(); } catch (Exception err) { logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace); ; } }