1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace SmartCoalApplication.Base
- {
- public interface IProgressEvents<TItemInfo>
- {
- void BeginOperation(IWin32Window owner, EventHandler callWhenUIShown, ICancelable cancelSink);
- void SetItemCount(int itemCount);
- void SetItemOrdinal(int itemOrdinal);
- void SetItemInfo(TItemInfo itemInfo);
- void SetItemWorkTotal(long totalWork);
- void BeginItem();
- void SetItemWorkProgress(long totalProgress);
- WorkItemFailureAction ReportItemFailure(Exception ex);
- void EndItem(WorkItemResult result);
- void EndOperation(OperationResult result);
- }
- }
|