public FunctionsForm() { InitializeComponent(); control4AllViews = new Control4AllViews(this); control4FunctionsView = new Control4FunctionsView(this, control4AllViews); control4AllViews.control4FunctionsView = control4FunctionsView; DiagramsForm diagram = DiagramsForm.GetInvisible; control4FunctionsView.Control4DiagramView = new Control4DiagramView(diagram, control4AllViews); control4AllViews.Control4DiagramView = control4FunctionsView.Control4DiagramView; NonLineairSystemsForm m = NonLineairSystemsForm.GetInvisible; control4AllViews.Control4NonLineairSystems = m.Control4NonLineairSystems; DefineColorsForm defColorForm = DefineColorsForm.GetInvisible; defColorForm.CombinedControl = m.Control4NonLineairSystems; Params2Form(); this.Cursor = Cursors.Default; pictureBox.Cursor = Cursors.Cross; listBoxXValues.DrawItem += listBox_DrawItem; }
private void checkBoxf_CheckedChanged(Object sender, EventArgs e) { CheckBox c = (CheckBox)sender; int n = Int32.Parse(c.Tag.ToString()); Control4FunctionsView.SetFInclude(n, c.Checked); }
public FunctionDrawer(IView f, Control4FunctionsView c, bool cg) : base(f, c, cg) { attractorLinePen = new Pen(attractorLineColor, lineWidth); if (Function != null) { dy = (Function.YMax - Function.YMin) / 10; dx = (Function.XMax - Function.XMin) / 10; } center = new PointF(BSize / 2, BSize / 2); }
public Control4AllViews(IFunctionsView i) { defColorForm = DefineColorsForm.GetInvisible; control4FunctionsView = new Control4FunctionsView(i); Control4NonLineairSystems = new Control4NonLineairSystems(i); Control4DiagramView = new Control4DiagramView(i); NonLineairSystemsForm m = NonLineairSystemsForm.GetInvisible; control4NonLineairSystems = new Control4NonLineairSystems(m, this); m.Control4NonLineairSystems = control4NonLineairSystems; control4NonLineairSystems.PlotForm = m;//needed to define colors when this form is not yet opened ((ICombined)Control4NonLineairSystems.PlotForm).PresetType(); Control4NonLineairSystems.PlotForm.Params2Form(); defColorForm.Control4DiagramView = Control4DiagramView; defColorForm.Control4FunctionsView = control4FunctionsView; }
public BaseFunctionDrawer(IView f, Control4FunctionsView c, bool cg) { form = f; control4FunctionsView = c; baseFunction = control4FunctionsView.CurrentFunction; createGIF = cg; float[] dashValues = { 2, 4, 2, 4 }; dashed_pen.DashPattern = dashValues; center = new PointF(BSize / 2, BSize / 2); mainImage = new Bitmap(BSize, BSize); if (MainImage != null) { using (Graphics g = Graphics.FromImage(MainImage)) g.Clear(Color.LightGray); } PointsImage = new DirectBitmap(BSize, BSize); if (PointsImage != null) { using (Graphics g = Graphics.FromImage(PointsImage.Bitmap)) g.Clear(Color.White); } }
public DiagramDrawer(IView f, Control4FunctionsView c, bool cg) : base(f, c, cg) { }
public FunctionDrawerInset(IView f, Control4FunctionsView c, bool cg) : base(f, c, cg) { pointsImage = new DirectBitmap(BSize, BSize); mainImage = new Bitmap(BSize, BSize); }