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; }
public void OpenSystem2Form() { NonLineairSystemsForm m = NonLineairSystemsForm.Instance; m.Control4NonLineairSystems = Control4NonLineairSystems; ((ICombined)Control4NonLineairSystems.PlotForm).PresetType(); m.Show(); m.BringToFront(); }
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 static void setNull() { instance = null; }