public MainUI() { InitializeComponent(); if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) { this.Text = "Zoo Turnstile v" + System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); tbApi.Text = localURL; } else { syncTime = 10000; initSyncTime = 10000; tbApi.Text = liveURL; this.Text = "Zoo Turnstile"; } log = new Logs(this); web = new WEB_API(log, this, tbApi.Text.ToString()); log.LogText("Program Started @ " + DateTime.Now.ToString("MM/dd/yyyy hh:mm tt")); Lbl = new Label [noOfDevices] { status1, status2, status3, status4, status5, status6 }; timerStart.Start(); ts = new Turnstile[noOfDevices]; }
public Turnstile(String devIP, int devNo, MainUI UI, Logs logger, WEB_API WEB) { this.devIP = devIP; this.devNo = devNo; this.ui = UI; this.log = logger; this.web = WEB; this.tp = new TicketPunched(); this.tpQueue = new ConcurrentQueue <TicketPunched>(); }