private void OnUserAuth(UserAuthCompleteEventArgs args) { LogInfo("Handle User Authentication finished..."); LogInfo("Auth Success = " + args.IsAuthSuccess); IsClientsAvl = args.IsAuthSuccess; IsDiaryAvl = args.IsAuthSuccess; IsInvoicesAvl = args.IsAuthSuccess; IsMjtAvl = args.IsAuthSuccess; IsRetOrdersAvl = args.IsAuthSuccess; IsStatsAvl = args.IsAuthSuccess; IsWorksOrdersAvl = args.IsAuthSuccess; }
/// <summary> /// Handles the <see cref="UserAuthCompletedEvent" /> /// </summary> /// <param name="args"></param> private void OnUserAuth(UserAuthCompleteEventArgs args) { mActualUser = args.User; AllUsers.Clear(); AllUsers.AddRange(ConManager.GetAllUsers()); if (AllUsers.Count > 0) AllUsers.Where(x => x != null).ForEach(x => Resources.Add(new ModelResource(x))); }