Код: Выделить всё
public class WaveForm
{
public double Amplitude
{
get;set;
}
public double Frequency
{
get;set;
}
public string Wave()
{
return (Amplitude * Frequency).ToString();
}
public WaveForm()
{
Amplitude = 1;
Frequency = 2;
}
}
Код: Выделить всё
public class Channel
{
public string ChannelId
{
get;set;
}
public WaveForm WaveForm
{
get;set;
}
public Channel(string channelId)
{
ChannelId = channelId;
WaveForm = new WaveForm();
}
}
Код: Выделить всё
[ObservableProperty]
private ObservableCollection _channelSource = new();
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/757 ... ate-the-ui