public void SetGraphParameters(GraphChagedEventArgs args) { SusupendPaint(); graphBox.XAxisMax = args.EndTime; graphBox.XWidth = args.Width; if (args.FollowingTime) { graphBox.StartFollowingTime(); } else { graphBox.StopFollowingTime(); } ResumePaint(); }