Esempio n. 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();
 }
Esempio n. 2
0
 private TicketSource()
 {
     this.repository = new TicketRepository();
 }