Example #1
0
        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;
        }
Example #2
0
 public void SetDiagram(IDiagramView diagram)//, bool Ap, bool Bp, bool Cp) {
 {
     if (Control4DiagramView != null)
     {
         Control4DiagramView.ParNum          = 0;// ParNum;
         Control4DiagramView.CurrentFunction = CurrentFunction.Clone();
         if (Control4DiagramView.CurrentFunction is HenonFunction)
         {
             Control4DiagramView.DiagramStopParameter = 0;
         }
         else
         {
             Control4DiagramView.DiagramStopParameter = CurrentFunction.DiagramStop;
         }
         Control4DiagramView.DiagramStartParameter = CurrentFunction.DiagramStart;
         Control4DiagramView.SetDiagram(diagram);
     }
 }