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); }
public Graph() { InitializeComponent(); History = new DataHistory(Width); }