public override async Task Init() { HeaderTitle = Globalization.T("ChangePassword"); IsBackVisible = U.IsBackVisible; AllPatientTabs.ForEach(q => PatientHeaderModels.Add(q, new PatientHeaderModel())); CommitCommand = CommandFunc.CreateAsync(Commit, () => !HasModelErrors()); CancelCommand = CommandFunc.CreateAsync(Cancel); LocaleChooseCommand = CommandFunc.CreateAsync(async() => await Globalization.SwitchLocale()); U.RequestMainThread(async() => { if (!await LoadData()) { return; } CalcAll(); }); }
public override async Task Init() { //UserProfileRowId = new Guid("2fd3c1cb-be1a-4444-8131-c44447d3b6bc"); HeaderTitle = Globalization.T("Profile"); IsBackVisible = U.IsBackVisible; AllPatientTabs.ForEach(q => PatientHeaderModels.Add(q, new PatientHeaderModel())); CommitCommand = CommandFunc.CreateAsync(Commit, () => !HasModelErrors()); CancelCommand = CommandFunc.CreateAsync(Cancel); LogoutCommand = CommandFunc.CreateAsync(Logout); ChangePasswordCommand = CommandFunc.CreateAsync(ChangePassword); LocaleChooseCommand = CommandFunc.CreateAsync(async() => await Globalization.SwitchLocale()); U.RequestMainThread(async() => { if (!await LoadData()) { return; } CalcAll(); }); }