Exemple #1
0
        public static void BeginWait(string message, Action <DoWorkEventArgs> work, Func <bool> onCancel = null)
        {
            var waitingForm = new WaitingForm(message, work, null, onCancel);

            waitingForm.ShowDialog();
        }
Exemple #2
0
        public static void Begin(string message, Action <DoWorkEventArgs> work, Action onFinish, Func <bool> onCancel = null)
        {
            var waitingForm = new WaitingForm(message, work, onFinish, onCancel);

            waitingForm.Show();
        }