82 lines
1.7 KiB
C#
82 lines
1.7 KiB
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace ImageCatalog_2.ViewModels;
|
||
|
|
|
||
|
|
public class ProcessingStateViewModel : ViewModelBase
|
||
|
|
{
|
||
|
|
private string _processingStatus = string.Empty;
|
||
|
|
public string ProcessingStatus
|
||
|
|
{
|
||
|
|
get => _processingStatus;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_processingStatus = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _processedImagesCount;
|
||
|
|
public int ProcessedImagesCount
|
||
|
|
{
|
||
|
|
get => _processedImagesCount;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_processedImagesCount = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _totalImagesCount;
|
||
|
|
public int TotalImagesCount
|
||
|
|
{
|
||
|
|
get => _totalImagesCount;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_totalImagesCount = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _progressBarValue;
|
||
|
|
public int ProgressBarValue
|
||
|
|
{
|
||
|
|
get => _progressBarValue;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_progressBarValue = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private int _progressBarMaximum = 100;
|
||
|
|
public int ProgressBarMaximum
|
||
|
|
{
|
||
|
|
get => _progressBarMaximum;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_progressBarMaximum = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private string _speedCounter = "-";
|
||
|
|
public string SpeedCounter
|
||
|
|
{
|
||
|
|
get => _speedCounter;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
_speedCounter = value;
|
||
|
|
NotifyPropertyChanged();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public void ResetForRun()
|
||
|
|
{
|
||
|
|
ProcessingStatus = "Elaborazione in corso...";
|
||
|
|
TotalImagesCount = 0;
|
||
|
|
ProcessedImagesCount = 0;
|
||
|
|
SpeedCounter = "-f/s";
|
||
|
|
ProgressBarValue = 0;
|
||
|
|
ProgressBarMaximum = 100;
|
||
|
|
}
|
||
|
|
}
|