Exemplo n.º 1
0
        public async Task <bool> Add(ClienteView mensaje)
        {
            var resultado = await mensaje.ShowMessageAsync("Agregando", "Desea Agregar una nuevo cliente",
                                                           MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings
            {
                AffirmativeButtonText = "Si",
                NegativeButtonText    = "No",
                AnimateShow           = true,
                AnimateHide           = false
            });

            if (resultado == MessageDialogResult.Affirmative)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }