Interface IProgressBarDC
- Namespace
- SunamoDevCode._public
- Assembly
- SunamoDevCode.dll
Interface for progress bar operations supporting percent-based tracking.
public interface IProgressBarDC
- Extension Methods
Properties
IsRegistered
Gets or sets whether this progress bar is registered with the system.
bool IsRegistered { get; set; }
Property Value
WriteOnlyDividableBy
Gets or sets the divisor for write frequency (only writes progress when count is divisible by this).
int WriteOnlyDividableBy { get; set; }
Property Value
Methods
Done()
Marks the entire operation as complete.
void Done()
DoneOne()
Marks one item as completed.
void DoneOne()
DoneOne(int)
Marks the specified number of items as completed.
void DoneOne(int count)
Parameters
countintNumber of items completed.
DoneOne(object)
Marks one item as completed with an async result. Increments done items after a finished async operation.
void DoneOne(object asyncResult)
Parameters
asyncResultobjectResult of the completed async operation.
Init(IPercentCalculatorDC)
Initializes the progress bar with a percent calculator.
void Init(IPercentCalculatorDC pc)
Parameters
pcIPercentCalculatorDCPercent calculator instance.
Init(IPercentCalculatorDC, bool)
Initializes the progress bar with a percent calculator and unit test flag.
void Init(IPercentCalculatorDC pc, bool isNotUt)
Parameters
pcIPercentCalculatorDCPercent calculator instance.
isNotUtboolWhether this is not a unit test context.
Start(int)
Starts the progress bar with the specified total item count.
void Start(int totalCount)
Parameters
totalCountintTotal number of items to process.