Example #1
0
 private void CheckLegend()
 {
     if (m_CheckLegend != m_Legend)
     {
         m_CheckLegend.Copy(m_Legend);
         OnLegendChanged();
     }
     else if (m_Legend.show)
     {
         if (m_CheckSerieCount != m_Series.Count)
         {
             m_CheckSerieCount = m_Series.Count;
             m_CheckSerieName.Clear();
             var serieNames = m_Series.GetSerieNameList();
             foreach (var name in serieNames)
             {
                 m_CheckSerieName.Add(name);
             }
             OnLegendChanged();
         }
         else if (!ChartHelper.IsValueEqualsList(m_CheckSerieName, m_Series.GetSerieNameList()))
         {
             var serieNames = m_Series.GetSerieNameList();
             foreach (var name in serieNames)
             {
                 m_CheckSerieName.Add(name);
             }
             OnLegendChanged();
         }
     }
 }
Example #2
0
 private void CheckLegend()
 {
     if (m_CheckLegend != m_Legend)
     {
         m_CheckLegend.Copy(m_Legend);
         OnLegendChanged();
     }
 }