Anzeigen von Minimum und Maximum
In dem oben abgebildeten Beispiel Array Bar Chart sind Linien für Minimum und Maximum zu erkennen. Diese lassen sich ebenso über die Styleklassen an einem Channel einstellen.
private void btnMin_Click(object sender, EventArgs e)
{
foreach(Chart chart in scopeProjectPanel.ScopeProject.SubMember.OfType<Chart>())
{
foreach(AxisGroup ag in chart.SubMember.OfType<AxisGroup>())
{
foreach(Channel channel in ag.SubMember.OfType<Channel>())
{
MinMaxStyle minMaxStyle = channel.SubMember.OfType<ChannelStyle>().First().SubMember.OfType<MinMaxStyle>().First();
minMaxStyle.ShowMin = !minMaxStyle.ShowMin;
}
}
}
}
private void btnShowMax_Click(object sender, EventArgs e)
{
foreach (Chart chart in scopeProjectPanel.ScopeProject.SubMember.OfType<Chart>())
{
foreach (AxisGroup ag in chart.SubMember.OfType<AxisGroup>())
{
foreach (Channel channel in ag.SubMember.OfType<Channel>())
{
MinMaxStyle minMaxStyle = channel.SubMember.OfType<ChannelStyle>().First().SubMember.OfType<MinMaxStyle>().First();
minMaxStyle.ShowMax = !minMaxStyle.ShowMax;
}
}
}
}