예제 #1
0
        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();
            });
        }
예제 #2
0
        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();
            });
        }