private async void OnSalvar()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                if (string.IsNullOrEmpty(Curso.Nome))
                {
                    await Application.Current.MainPage.DisplayAlert("Erro", "Preencha o campo", "Ok");
                }
                else
                {
                    bool resultado = false;

                    if (string.IsNullOrEmpty(Curso.Codigo))
                    {
                        resultado = await CursoDao.Inserir(Curso);
                    }
                    else
                    {
                        resultado = await CursoDao.Alterar(Curso);
                    }

                    if (resultado)
                    {
                        await Application.Current.MainPage.DisplayAlert("Sucesso", "Salvo", "Ok");
                    }
                    else
                    {
                        await Application.Current.MainPage.DisplayAlert("Erro", "Algo deu errado", "Ok");
                    }
                }
            }
            catch (Exception ex)
            {
                await Application.Current.MainPage.DisplayAlert("Erro", ex.Message, "Ok");
            }
            finally
            {
                await AtualizarTela();

                IsBusy = false;
            }
        }