Exemplo n.º 1
0
 public GistViewModel(bool activateService = true, bool activateGistLocal = true)
 {
     if (activateService)
     {
         Service = new GistService(Url);
     }
     if (activateGistLocal)
     {
         GistLocalDB = new GistLocalDB();
     }
 }
Exemplo n.º 2
0
 public GistViewModel(int itensperpage, int pagenumber, string url)
 {
     if (!string.IsNullOrEmpty(url) && itensperpage > 0 && pagenumber > 0)
     {
         ItensPerPage = itensperpage;
         Page         = pagenumber;
         Url          = url;
         Service      = new GistService(Url);
         GistLocalDB  = new GistLocalDB();
     }
     else
     {
         Service     = new GistService(Url);
         GistLocalDB = new GistLocalDB();
     }
 }
Exemplo n.º 3
0
 public GistViewModel()
 {
     Service     = new GistService(Url);
     GistLocalDB = new GistLocalDB();
 }