Exemple #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();
 }
 private TicketSource()
 {
     this.repository = new TicketRepository();
 }