/// <summary>
        ///     Wird aufgerufen sobald die View initialisiert wurde
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public override async Task OnActivated(object args = null)
        {
            if (args is object[] argsArr)
            {
                if (argsArr[0] is UiMeeting appointment && argsArr[1] is ExShop shop)
                {
                    Appointment = appointment;
                    _shop       = shop;
                    PageTitle   = shop.Name;
                    var response = await Sa.GetDefaultText(appointment.Meeting.Staff.Id);

                    if (response.Ok && response.Result != null && !string.IsNullOrWhiteSpace(response.Result.PlaceholderText))
                    {
                        Placeholder = response.Result.PlaceholderText;
                    }
                    else
                    {
                        Placeholder = ResViewAppointmentInfo.LblShopAdditionalInfo;
                    }
                }
            }
            else
            {
                await Nav.Back();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Wird aufgerufen sobald die View initialisiert wurde
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public override Task OnActivated(object args = null)
        {
            if (!(args is string number))
            {
                Nav.Back();
                return(Task.CompletedTask);
            }

            _number = number;
            return(Task.CompletedTask);
        }
Ejemplo n.º 3
0
 private async void ContinueNavigation()
 {
     if (FromRegistration)
     {
         Nav.ToView(ViewAfterLogin, ViewArgsAfterLogin);
     }
     else
     {
         await Nav.Back();
     }
 }
Ejemplo n.º 4
0
        public async Task SaveButtonTapped()
        {
            try
            {
                if (!await(SaveInDatabase()))
                {
                    return;
                }
            }
            catch (Exception ex)
            {
                await Alert.Show(ex.Message);

                return;
            }

            await Nav.Back();
        }