Exemple #1
0
        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 buttonDefineColors_Click(Object sender, EventArgs e)
        {
            DefineColorsForm defColorForm = DefineColorsForm.Instance;

            defColorForm.CombinedControl = combinedControl;
            defColorForm.Show();
            defColorForm.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;
        }
Exemple #4
0
 public static void setNull()
 {
     instance = null;
 }