C# Класс RssStarterKit.ViewModels.MainViewModel

Наследование: ViewModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
BuildHtmlForSelectedItem ( ) : string

assemble an html string for the web browser to display the contents of the selected feed item

LoadState ( bool forceRefresh = false ) : void

load the settings and all the feed data from isolated storage

RefreshSelectedFeed ( ) : System.Threading.Tasks.Task

This is the workhorse of the MainViewModel, responsible for retrieving the data from the RSS feed and processing it for viewing

SaveState ( ) : void

save the settings and all the feed data to isolated storage

ShareCurrentFeedItem ( ) : void

share the current feed via the windows phone social media task

Приватные методы

Метод Описание
DeserializeSettings ( string data ) : Settings
GetFeedDataFromReader ( XmlReader reader ) : RssFeed
GetSettingsFromConfigFile ( ) : Settings
InitializeProperties ( ) : void
LoadAtomFeed ( System.Xml.Linq.XDocument doc, RssFeed feed ) : void
LoadRssFeed ( System.Xml.Linq.XDocument doc, RssFeed feed ) : void
LoadSelectedFeed ( ) : void

refresh the selected feed from the internet

ResetFeeds ( ) : void
SerializeSettings ( Settings settings ) : string
SetMediaImage ( RssFeed feed, System.Xml.Linq.XDocument doc ) : void

Описание методов

BuildHtmlForSelectedItem() публичный Метод

assemble an html string for the web browser to display the contents of the selected feed item
public BuildHtmlForSelectedItem ( ) : string
Результат string

LoadState() публичный Метод

load the settings and all the feed data from isolated storage
public LoadState ( bool forceRefresh = false ) : void
forceRefresh bool
Результат void

RefreshSelectedFeed() публичный Метод

This is the workhorse of the MainViewModel, responsible for retrieving the data from the RSS feed and processing it for viewing
public RefreshSelectedFeed ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SaveState() публичный Метод

save the settings and all the feed data to isolated storage
public SaveState ( ) : void
Результат void

ShareCurrentFeedItem() публичный Метод

share the current feed via the windows phone social media task
public ShareCurrentFeedItem ( ) : void
Результат void