示例#1
0
        protected override void OnResize(EventArgs e)
        {
            if (DesignMode || History == null)
                return;

            DataHistory newHistory = new DataHistory(Width);
            newHistory.FullMin = ValueMin;
            newHistory.FullMax = ValueMax;

            foreach (double value in History)
                newHistory.UpdateValue(value);

            History = newHistory;
            Refresh();
            base.OnResize(e);
        }
示例#2
0
        public Graph()
        {
            InitializeComponent();

            History = new DataHistory(Width);
        }