예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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;
 }