コード例 #1
0
 ///<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;
 }
コード例 #2
0
ファイル: ClassesShared.cs プロジェクト: kjb7749/testImport
 ///<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;
 }