Example #1
0
 public MainViewModel(Page page)
 {
     this.page = page;
     username = string.Empty;
     password = string.Empty;
     storage = new Storage();
     client = new HelperClient();
     history = new History();
     history.Items = new List<Ticket>();
     Repository = new TicketRepository();
     tryGetCredentials();
     getTicketRepository();
     getUser();
     getHistory();
 }
Example #2
0
 private async void getHistory()
 {
     try
     {
         this.History = await storage.GetHistory();
         showAll();
     }
     catch (Exception e)
     {
         await new MessageDialog(e.Message, "Get History").ShowAsync();
     }
 }