private void ControlForm_Load(object sender, EventArgs e) { function = new ThreeDimensionalFunction(30, 1, ThreeDimensionalFunctionEvaluator.fromString("sin(x) + cos(y)")); drawableFuncion = new DrawableFunction(this.zoomIndex, function.GetPoints()); Panel drawingPanel = PanelGetter.GetPanel(); functionDrawer = new FunctionDrawer(drawingPanel.CreateGraphics(), drawingPanel.BackColor, drawingPanel.Height, drawingPanel.Width); }
private void ViewForm_Load(object sender, EventArgs e) { PanelGetter.SetPanel(drawingPanel); controlForm = new ControlForm(); controlForm.Show(); }