Exemplo n.º 1
0
 public void DownloadContent()
 {
     if (this.Format == "JSON")
     {
         Content = new NotifyTaskCompletion <string>(Service.GetSectionJson(ContentUrl));
     }
     else
     {
         Content = new NotifyTaskCompletion <string>(Service.GetSection(ContentUrl));
     }
 }
Exemplo n.º 2
0
 public MainViewModel()
 {
     Sections = new NotifyTaskCompletion <List <DataItem> >(Service.GetSections(main_url));
 }