예제 #1
0
        private async void DownloadScheme()
        {
            var scheme = PagedSchemesView.CurrentItem as Scheme;

            if (scheme != null)
            {
                var file = await StudioStylesService.DownloadAsync(scheme.DownloadPath);

                if (SettingsActivator.LoadScheme(file))
                {
                    SchemesHistory.Add(scheme);

                    StatusBarHelper.Update(string.Format("The Style '{0}' was activated successfully!", scheme.Title));
                }
            }
        }
예제 #2
0
 public void CheckCache()
 {
     SchemesHistory.Check();
 }