private async void button_Click(object sender, RoutedEventArgs e) { try { if (System.IO.File.Exists(_dllPath)) { System.IO.File.Delete(_dllPath); Sources sources = this.FindParent <Sources>(); sources.container.Children.Clear(); sources.ItemsCount = 0; if (Directory.Exists("News")) { foreach (string file in System.IO.Directory.GetFiles("News", "*.news")) { await sources.AddSource(file); } } } } catch { } }