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