System.Windows.Threading.Dispatcher.BeginInvoke C# (CSharp) Method

BeginInvoke() public method

public BeginInvoke ( System.Action a ) : System.Windows.Threading.DispatcherOperation
a System.Action
return System.Windows.Threading.DispatcherOperation
		public DispatcherOperation BeginInvoke (Action a)
		{
			return BeginInvoke (a, null);
		}

Same methods

Dispatcher::BeginInvoke ( Delegate d ) : System.Windows.Threading.DispatcherOperation

Usage Example

Beispiel #1
0
        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;
        }
All Usage Examples Of System.Windows.Threading.Dispatcher::BeginInvoke