Exemple #1
0
 public async Task Fechar()
 {
     if (!IsBusy)
     {
         try
         {
             await Tela.FecharModal();
         }
         catch (Exception ex)
         {
             await Tela.Alerta(ex?.Message);
         }
     }
 }
Exemple #2
0
        public async Task btnVoltar_Click()
        {
            if (!IsBusy)
            {
                IsBusy = true;

                try
                {
                    await Task.Delay(100);

                    await Tela.FecharModal();
                }
                finally
                {
                    IsBusy = false;
                }
            }
        }