Table of Contents

Class ProgressState

Namespace
SunamoInterfaces.Interfaces
Assembly
SunamoInterfaces.dll

Manages progress state and progress events.

public class ProgressState
Inheritance
ProgressState
Inherited Members
Extension Methods

Properties

IsRegistered

Gets or sets a value indicating whether progress events are registered.

public bool IsRegistered { get; set; }

Property Value

bool

Methods

Init(Action<int>, Action<int>, Action)

Initializes progress tracking with event handlers.

public void Init(Action<int> overallItems, Action<int> anotherItem, Action writeProgressBarEnd)

Parameters

overallItems Action<int>

Handler for overall item count updates.

anotherItem Action<int>

Handler for individual item progress updates.

writeProgressBarEnd Action

Handler for progress completion.

OnAnotherItem()

Increments and raises the another item event with the current count.

public void OnAnotherItem()

OnAnotherItem(int)

Raises the another item event with the specified count.

public void OnAnotherItem(int count)

Parameters

count int

The current item count.

OnOverallItems(int)

Sets the overall item count and raises the overall items event.

public void OnOverallItems(int totalCount)

Parameters

totalCount int

The total item count.

OnWriteProgressBarEnd()

Raises the progress bar end event.

public void OnWriteProgressBarEnd()

Events

AnotherItem

Event raised when another item is processed.

public event Action<int>? AnotherItem

Event Type

Action<int>

OverallItems

Event raised when the overall item count is set.

public event Action<int>? OverallItems

Event Type

Action<int>

WriteProgressBarEnd

Event raised when progress bar ends.

public event Action? WriteProgressBarEnd

Event Type

Action