void InitObjects() { DrawingStyler.style = DrawingStyle.Default; currentArray = new SortingArray(defaultArraySize); graph = DisplayBox.CreateGraphics(); controller = new Controller(graph, currentArray, GetTrackbarDelay()); }
private void DisplayBox_SizeChanged(object sender, EventArgs e) { graph = DisplayBox.CreateGraphics(); UpdateGraphNowOrNextFrame(); }