Table of Contents

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

bool

WriteOnlyDividableBy

Gets or sets the divisor for write frequency (only writes progress when count is divisible by this).

int WriteOnlyDividableBy { get; set; }

Property Value

int

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

count int

Number 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

asyncResult object

Result of the completed async operation.

Init(IPercentCalculatorDC)

Initializes the progress bar with a percent calculator.

void Init(IPercentCalculatorDC pc)

Parameters

pc IPercentCalculatorDC

Percent calculator instance.

Init(IPercentCalculatorDC, bool)

Initializes the progress bar with a percent calculator and unit test flag.

void Init(IPercentCalculatorDC pc, bool isNotUt)

Parameters

pc IPercentCalculatorDC

Percent calculator instance.

isNotUt bool

Whether this is not a unit test context.

Start(int)

Starts the progress bar with the specified total item count.

void Start(int totalCount)

Parameters

totalCount int

Total number of items to process.