void VsPlayback_Load(object sender, EventArgs e) { if (bCancel) { this.Close(); } VsSplasher.Close(); this.vsSystemInfo1.Start(); //radioButtonGraph.Checked = true; }
static void Main() { System.IO.Directory.SetCurrentDirectory( System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location)); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); VsSplasher.Show(typeof(VsLogin)); Application.Run(new VsPlayback()); //Application.Run(new test()); }
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);; } }