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(); } }
private void OnRefreshStart() { PastOrders = PastOrderLoader.Load(User); Thread.Sleep(5000); RefreshPastOrders(); }