示例#1
0
        public void Init(string login, string password)
        {
            IAuthentification authentification = new Authentification();

            User = authentification.LoginUsers(login, password);
            if (User != null)
            {
                IsAuthenticated  = true;
                ProcessingOrders = VisitorProcessingOrders;
                PastOrders       = PastOrderLoader.Load(User);
                UserSingleton.GetInstance.RefreshPastOrders();
            }
        }
示例#2
0
 private void OnRefreshStart()
 {
     PastOrders = PastOrderLoader.Load(User);
     Thread.Sleep(5000);
     RefreshPastOrders();
 }