public ItemViewModel(SelfWinSettings settings, Item item) { this.Parameter = item; this.InitFavicon(settings, item.Icon); this.InitContent(this.Parameter); }
public override IItemViewModel CreateItemVm(SelfWinSettings settings, Item item) { return new ItemViewModel(settings, item); }
private void InitFavicon(SelfWinSettings settings, string icon) { var root = settings.SelfossOptions.Url(); this.SourceIconUrl = $"{root}/favicons/{icon}"; }
public virtual IItemViewModel CreateItemVm(SelfWinSettings settings, Item item) { return null; }
private void SaveToApplicationData(SelfWinSettings newSettings) { var store = SettingsStore(); SaveConnection(store, newSettings.SelfossOptions); }
public async Task SaveSettings(ISettingsViewModel settings) { var newSettings = new SelfWinSettings(settings.Url, settings.Port, settings.Username, settings.Password); SaveToApplicationData(newSettings); await ValidateSettings(); }
public SelfWinSettings Settings() { var settings = new SelfWinSettings(); var store = SettingsStore(); ReadConnection(store, settings.SelfossOptions); return settings; }