Ejemplo n.º 1
0
        async private void InitMaster(UnicontaBaseEntity corasauMaster, bool setFocus)
        {
            if (corasauMaster == null)
            {
                return;
            }

            busyIndicator.IsBusy = true;
            ModifiedRow          = await UtilDisplay.GetPhoto(corasauMaster, api);

            busyIndicator.IsBusy = false;

            this.documentViewer.Children.Clear();

            try
            {
                this.documentViewer.Children.Add(UtilDisplay.LoadControl(userDocClient.UserDocument, userDocClient.DocumentType, false, setFocus));
            }
            catch
            {
                this.documentViewer.Children.Add(UtilDisplay.LoadDefaultControl(Uniconta.ClientTools.Localization.lookup("InvalidDocSave")));
            }
            SetMetaInfo(userDocClient);
        }