Exemplo 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();
 }
Exemplo n.º 2
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();
 }