Exemplo n.º 1
0
        public async void Initialize()
        {
            if (IsBusy)
            {
                return;
            }
            try
            {
                IsBusy       = true;
                NoWinesFound = false;

                Locker = await LockerMemberDb.GetByMemberId(User.UserID.ToString());

                LoadWinesCommand.Execute(null);
            }
            catch (Exception ex)
            {
                NoWinesFound = true;
                Logger.Report(ex, "Method", "Initialize");
                MessagingService.Current.SendMessage(MessageKeys.Error, ex);
            }
            finally
            {
                IsBusy = false;
            }
        }
Exemplo n.º 2
0
 public async void Initialize(LockerMember locker)
 {
     Locker = locker;
     LoadWinesCommand.Execute(null);
 }