///<param name="currentForm">The form to activate once the progress is done. If you cannot possibly pass in a form, it is okay to pass in null. ///</param> public ODProgressExtended(ODEventType odEventType, IODEvent odEvent, Form currentForm, object tag = null, ProgBarStyle progBarStyle = ProgBarStyle.Blocks, string lanThis = "ProgressExtended", string cancelButtonText = null) { _actionCloser = ODProgress.ShowExtended(odEventType, odEvent.GetType(), currentForm, tag, new ProgressCanceledHandler((object sender, EventArgs e) => { IsCanceled = true; }), new ProgressPausedHandler((object sender, ProgressPausedArgs e) => { IsPaused = e.IsPaused; }), cancelButtonText); _event = odEvent; _progBarStyle = progBarStyle; _odEventType = odEventType; LanThis = lanThis; }
///<param name="currentForm">The form to activate once the progress is done. If you cannot possibly pass in a form, it is okay to pass in null. ///</param> public ODProgressExtended(string eventName, IODEvent odEvent, Form currentForm, object tag = null, ProgBarStyle progBarStyle = ProgBarStyle.Blocks, string lanThis = "ProgressExtended") { _actionCloser = ODProgressOld.ShowProgressExtended(eventName, odEvent.GetType(), currentForm, tag, new ProgressCanceledHandler((object sender, EventArgs e) => { IsCanceled = true; }), new ProgressPausedHandler((object sender, ProgressPausedArgs e) => { IsPaused = e.IsPaused; }), new EventHandler((object sender, EventArgs e) => { _hasProgressOpened = true; })); _event = odEvent; _progBarStyle = progBarStyle; _eventName = eventName; LanThis = lanThis; }