2025-04-15 12:10:19 +02:00

126 lines
3.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace GestoreTrimestrale
{
public class CounterStorage
{
public CounterStorage()
{
ElabCounters = new ObservableCollection<ElabCounterItem>();
StatoReportCounters = new ObservableCollection<StatoReportCounterItem>();
}
public ObservableCollection<ElabCounterItem> ElabCounters { get; set; }
public ObservableCollection<StatoReportCounterItem> StatoReportCounters { get; set; }
}
public class ElabCounterItem : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private int _elab;
private int _count;
private string _rete;
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
public int Elab
{
get
{
return _elab;
}
set
{
_elab = value;
NotifyPropertyChanged();
}
}
public int Count
{
get
{
return _count;
}
set
{
_count = value;
NotifyPropertyChanged();
}
}
public string Rete
{
get
{
return _rete;
}
set
{
_rete = value;
NotifyPropertyChanged();
}
}
}
public class StatoReportCounterItem : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private int _statoReport;
private int _count;
private string _rete;
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
public int StatoReport
{
get
{
return _statoReport;
}
set
{
_statoReport = value;
NotifyPropertyChanged();
}
}
public int Count
{
get
{
return _count;
}
set
{
_count = value;
NotifyPropertyChanged();
}
}
public string Rete
{
get
{
return _rete;
}
set
{
_rete = value;
NotifyPropertyChanged();
}
}
}
}