/// <summary> /// Initialize dialog and start background operation /// </summary> public static RunWorkerCompletedEventArgs Show( string caption, string title, bool autoclose, BackgroundWorker worker, object argument) { var dialog = new DoWorkSimpleDialog(caption, title, autoclose, worker, argument); dialog.ShowDialog(); return(dialog.CompletedEventArgs); }
/// <summary> /// Initialize dialog and start background operation /// </summary> public static RunWorkerCompletedEventArgs Show( string caption, string title, bool autoclose, BackgroundWorker worker, object argument) { var dialog = new DoWorkSimpleDialog(caption, title, autoclose, worker, argument); dialog.ShowDialog(); return dialog.CompletedEventArgs; }