Ejemplo n.º 1
0
        public async override void Start()
        {
            base.Start();
            GenderOptions.Add(new SelectOptionViewModel <string>
            {
                Display = "Male",
                Value   = "M"
            });
            GenderOptions.Add(new SelectOptionViewModel <string>
            {
                Display = "Female",
                Value   = "F"
            });

            try
            {
                if (this.NavigationCriteria.ExistingUser)
                {
                    await this.LoadUserAsync(this.NavigationCriteria.ProfileId);
                }
                else
                {
                    await this.CreateUserAsync();
                }
            }
            catch (Exception ex)
            {
                this.messageBox.ShowAsync("There was an error creating the user: "******"Error");
                this.logger.Log(ex);
            }
        }