public DispatcherOperation BeginInvoke (Action a) { return BeginInvoke (a, null); }
public static bool Verify(Dispatcher dispatcher, Stream file) { if (file.Length == 0) { dispatcher.BeginInvoke(() => MessageBox.Show(Resources.EmptyFile, Properties.Resources.DownloadTitle, MessageBoxButton.OK)); return false; } if (!DatabaseReader.CheckSignature(file)) { dispatcher.BeginInvoke(() => MessageBox.Show(Resources.NotKdbx, Properties.Resources.DownloadTitle, MessageBoxButton.OK)); return false; } file.Position = 0; return true; }