void ApplicationColorsFileDownloadComplete(object sender, DownloadStringCompletedEventArgs e) { if (e.Cancelled) { return; } if (e.Error != null) { Logger.Instance.LogError(e.Error); return; } applicationColorsFileContents = e.Result; if (ApplicationColorSet != null) { // Restore previous step ApplicationColorSet resetColors = new Core.ApplicationColorSet(); resetColors.RestoreDefaultsColorsToApplication(); } ApplicationColorSet = fromResourceDictionary(XamlReader.Load(e.Result) as ResourceDictionary); downloadLayoutFile(); }
void ApplicationColorsFileDownloadComplete(object sender, DownloadStringCompletedEventArgs e) { if (e.Cancelled) return; if (e.Error != null) { Logger.Instance.LogError(e.Error); return; } applicationColorsFileContents = e.Result; if (ApplicationColorSet != null) { // Restore previous step ApplicationColorSet resetColors = new Core.ApplicationColorSet(); resetColors.RestoreDefaultsColorsToApplication(); } ApplicationColorSet = fromResourceDictionary(XamlReader.Load(e.Result) as ResourceDictionary); downloadLayoutFile(); }