增加SerieSymbol关于显示间隔的相关配置

This commit is contained in:
monitor1394
2019-09-29 19:13:08 +08:00
parent cf0f5618ff
commit 91bee0fb81
6 changed files with 53 additions and 20 deletions

View File

@@ -80,8 +80,16 @@ namespace XCharts
{
for (int i = 0; i < m_Series.Count; i++)
{
if ((string.IsNullOrEmpty(name) && string.IsNullOrEmpty(m_Series[i].name))
|| name.Equals(m_Series[i].name))
bool match = false;
if (string.IsNullOrEmpty(name))
{
if (string.IsNullOrEmpty(m_Series[i].name)) match = true;
}
else if (name.Equals(m_Series[i].name))
{
match = true;
}
if (match)
{
m_Series[i].index = i;
return m_Series[i];