示例#1
0
        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);
        }
示例#2
0
 private void ViewForm_Load(object sender, EventArgs e)
 {
     PanelGetter.SetPanel(drawingPanel);
     controlForm = new ControlForm();
     controlForm.Show();
 }