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 buttonBifurcationDiagram_Click(Object sender, EventArgs e) { DiagramsForm diagram = DiagramsForm.Instance; diagram.Control4FunctionsView = control4FunctionsView; diagram.Show(); diagram.BringToFront(); control4FunctionsView.SetDiagram(diagram);//, radioButtonParamaterA.Checked, radioButtonParamaterB.Checked, radioButtonParamaterC.Checked); diagram.Params2Form(); }