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
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
overallItemsAction<int>Handler for overall item count updates.
anotherItemAction<int>Handler for individual item progress updates.
writeProgressBarEndActionHandler 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
countintThe current item count.
OnOverallItems(int)
Sets the overall item count and raises the overall items event.
public void OnOverallItems(int totalCount)
Parameters
totalCountintThe 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
OverallItems
Event raised when the overall item count is set.
public event Action<int>? OverallItems
Event Type
WriteProgressBarEnd
Event raised when progress bar ends.
public event Action? WriteProgressBarEnd