Exemplo n.º 1
0
 public virtual void Dispose()
 {
     if (WaitThread != null)
     {
         WaitThread.Set();
     }
     if (Service != null)
     {
         Service.Abort();
         Service = null;
     }
 }
Exemplo n.º 2
0
 public override void OnRightSoftButtonClick()
 {
     if (RightSoftButtonText == "&Cancel")
     {
         Service.Abort();
         Activate();
     }
     else
     {
         OpenController((View.Parent as Main).moreActions1);
     }
 }
Exemplo n.º 3
0
 public override void OnRightSoftButtonClick()
 {
     if (RightSoftButtonText == "&Cancel")
     {
         Service.Abort();
         Activate();
     }
     else
     {
         if (!base.GoBack())
         {
             BaseController.OpenController(View.Parent as MySquare.UI.IView);
         }
     }
 }
Exemplo n.º 4
0
        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());
        }