Пример #1
0
        public async override Task Initialize()
        {
            await base.Initialize();

            if (NavigationParameter is Contribution contribution)
            {
                Contribution = contribution.ToContributionViewModel();
                IsEditing    = contribution.ContributionId.HasValue && contribution.ContributionId.Value > 0;
                PickContributionTypeCommand.RaiseCanExecuteChanged();
            }

            Contribution.AddValidationRules();

            if (!IsEditing)
            {
                await CheckForClipboardUrl();
            }
        }