예제 #1
0
        public virtual void Clear()
        {
            if (m_cMyPane != null)
            {
                while (m_cMyPane.CurveList.Count != 0)
                {
                    CurveItem curve = m_cMyPane.CurveList[0] as CurveItem;

                    if (curve == null)
                    {
                        return;
                    }

                    m_cMyPane.CurveList.Remove(curve);
                }

                m_cMyPane.CurveList.TrimExcess();

                if (m_alDatainGraph != null)
                {
                    m_alDatainGraph.Clear();
                    m_alDatainGraph.TrimToSize();
                }
            }
            ZGControl.ZoomOutAll(m_cMyPane);
        }
예제 #2
0
        public virtual void Clear()
        {
            if (m_cMyPane != null)
            {
                m_cMyPane.CurveList.Clear();

                if (m_alDatainGraph != null)
                {
                    m_alDatainGraph.Clear();
                }
            }
            ZGControl.ZoomOutAll(m_cMyPane);
            Invalidate();
        }