Files
laatzen/Common/OMNIPruefung/ViewModels/Options/COMOptionVM.cs
T
2023-12-05 10:46:06 +01:00

63 lines
1.8 KiB
C#

namespace OMNIPruefung.ViewModels.Options
{
using OMNIPruefung.ViewModels.Content;
using System.ComponentModel;
public class COMOptionVM : OptionVM
{
private readonly COMContentVM parent;
public COMOptionVM(COMContentVM parent) : base(parent)
{
this.parent = parent;
}
public int Nr
{
get => this.parent.Nr;
set => this.NotifyPropertyChanged(nameof(this.Nr));
}
public int Progress
{
get => this.parent.Progress;
set => this.NotifyPropertyChanged(nameof(this.Progress));
}
public bool Running
{
get => this.parent.Running;
set => this.NotifyPropertyChanged(nameof(this.Running));
}
public bool Connected
{
get => this.parent.Connected;
set => this.NotifyPropertyChanged(nameof(this.Connected));
}
public bool Visible
{
get => this.parent.Visible;
set => this.NotifyPropertyChanged(nameof(this.Visible));
}
public string State
{
get => this.parent.State;
set => this.NotifyPropertyChanged(nameof(this.State));
}
protected override void Parent_PropertyChanged(object sender, PropertyChangedEventArgs args)
{
base.Parent_PropertyChanged(sender, args);
this.NotifyPropertyChanged(nameof(this.Connected));
this.NotifyPropertyChanged(nameof(this.Running));
this.NotifyPropertyChanged(nameof(this.Nr));
this.NotifyPropertyChanged(nameof(this.Progress));
this.NotifyPropertyChanged(nameof(this.State));
this.NotifyPropertyChanged(nameof(this.Visible));
}
}
}