void btnImportManualLinks_Click(object sender, RoutedEventArgs e) { if (ShokoServer.IsMyAnime2WorkerBusy()) { MessageBox.Show(Commons.Properties.Resources.Server_Import, Commons.Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error); return; } txtMA2Progress.Visibility = Visibility.Visible; txtMA2Success.Visibility = Visibility.Visible; Microsoft.Win32.OpenFileDialog ofd = new Microsoft.Win32.OpenFileDialog { Filter = "Sqlite Files (*.DB3)|*.db3" }; ofd.ShowDialog(); if (!string.IsNullOrEmpty(ofd.FileName)) { ShokoServer.RunMyAnime2Worker(ofd.FileName); } }