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