public virtual void Dispose() { if (WaitThread != null) { WaitThread.Set(); } if (Service != null) { Service.Abort(); Service = null; } }
public override void OnRightSoftButtonClick() { if (RightSoftButtonText == "&Cancel") { Service.Abort(); Activate(); } else { OpenController((View.Parent as Main).moreActions1); } }
public override void OnRightSoftButtonClick() { if (RightSoftButtonText == "&Cancel") { Service.Abort(); Activate(); } else { if (!base.GoBack()) { BaseController.OpenController(View.Parent as MySquare.UI.IView); } } }
public ActionResult Index() { Instance = this; ViewBag.Message = "Welcome to GreenCore!"; Response.AddHeader("Refresh", "10"); try { ViewBag.NumberOfRegisteredCustomers = Service.GetAllCustomers().Count(); ViewBag.NumberOfOnlineStations = Service.GetOnlineStations().Count(); Service.Close(); } catch (Exception exception) { ViewBag.Status = ("Opps " + exception.GetType() + "\n" + exception.Message + "\n" + exception.StackTrace + "\n" + ((exception.InnerException != null)?exception.InnerException.Message:"").Replace("\n", "</br>")); Service.Abort(); } return(View()); }