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; } }
public async void Initialize(LockerMember locker) { Locker = locker; LoadWinesCommand.Execute(null); }