Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MainPage()
- {
- InitializeComponent();
- try
- {
- dataService = new DataService();
- AtualizaDados();
- }
- catch(Exception ex)
- {
- string erro = ex.Message;
- }
- }
- protected override void OnAppearing()
- {
- base.OnAppearing();
- try
- {
- lblTipoVenda.Text = "Tipo de Venda:";
- lblVencimento.Text = "Vencimento:";
- lblJuros.Text = "Juros:";
- lblEntrada.Text = "Entrada:";
- lblAcrescimo.Text = "Acréscimo:";
- lblDesconto.Text = "Desconto:";
- btnItens.IsEnabled = false;
- AtualizaDados();
- }
- catch (Exception ex)
- {
- string erro = ex.Message;
- }
- }
- private async void AtualizaDados()
- {
- try
- {
- lib = await dataService.GetLiberaAsync();
- listaLibera.ItemsSource = lib.OrderBy(item => item.Cliente).ToList();
- }
- catch(Exception ex)
- {
- string erro = ex.Message;
- }
- }
- public class CrossPushNotificationListener : IPushNotificationListener
- {
- public CrossPushNotificationListener()
- {
- }
- public void OnError(string message, DeviceType deviceType)
- {
- }
- public void OnMessage(JObject values, DeviceType deviceType)
- {
- }
- public void OnRegistered(string token, DeviceType deviceType)
- {
- }
- public void OnUnregistered(DeviceType deviceType)
- {
- }
- public bool ShouldShowNotification()
- {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement