public MultivariateLinearRegressionController(MultivariateLinearFitParameters param)
    {
      _param = param;

      string[] names = new string[param.SelectedDataColumns.Count];
      for(int i=0;i<names.Length;i++)
        names[i] = param.Table[param.SelectedDataColumns[i]].Name;

     
      
       _ctrl0 = new SingleChoiceController(names,0);
       _ctrl1 = new BooleanValueController(_param.IncludeIntercept);
       _ctrl2 = new BooleanValueController(_param.GenerateRegressionValues);
       _ctrl3 = new BooleanValueController(_param.GenerateRegressionValues);

        _ctrl0.DescriptionText = "Choose the dependent variable:";
        _ctrl1.DescriptionText = "Include intercept";
        _ctrl2.DescriptionText = "Generate prediction values";
        _ctrl3.DescriptionText = "Generate residual values";

      _elements[0] = new ControlViewElement(null,_ctrl0);
      _elements[1] = new ControlViewElement(null, _ctrl1);
      _elements[2] = new ControlViewElement(null, _ctrl2);
      _elements[3] = new ControlViewElement(null, _ctrl3);

      for(int i=0;i<_elements.Length;i++)
      {
        Current.Gui.FindAndAttachControlTo((IMVCController)_elements[i].Controller);
        _elements[i].View = ((IMVCController)_elements[i].Controller).ViewObject;
      }


      base.Initialize(_elements,false);
    }
Ejemplo n.º 2
0
 public void Initialize(IMVCAController[] childs, bool horizontalLayout)
 {
     _childController = new ControlViewElement[childs.Length];
     for (int i = 0; i < childs.Length; i++)
     {
         _childController[i] = new ControlViewElement(string.Empty, childs[i]);
     }
     _horizontalLayout = horizontalLayout;
     Initialize();
 }
    private void EhInitializationFinished(object sender, EventArgs e)
    {
      ControlViewElement[] childs = new ControlViewElement[_doc.Count];
      for (int i = 0; i < childs.Length; i++)
      {
        IMVCAController ctrl = (IMVCAController)Current.Gui.GetControllerAndControl(new object[] { _doc[i] }, typeof(IParameterSetElementController));
        childs[i] = new ControlViewElement(null, ctrl, ctrl.ViewObject);
      }

      base.Initialize(childs, false);
    }
Ejemplo n.º 4
0
        protected void SetElements(bool bInit)
        {
            if (null != View)
            {
                View.ClearTabs();
                for (int i = 0; i < _tabs.Count; i++)
                {
                    ControlViewElement tab = (ControlViewElement)_tabs[i];
                    View.AddTab(tab.Title, tab.View);
                }

                this._frontTabIndex = Math.Min(this._frontTabIndex, _tabs.Count - 1);
                View.BringTabToFront(_frontTabIndex);
            }
        }
Ejemplo n.º 5
0
    void Initialize(bool bInit)
    {
      if(bInit)
      {
      _grid1 = new XYGridStyleController(_doc.GridStyleFirst);
      Current.Gui.FindAndAttachControlTo(_grid1);
      ControlViewElement c1 = new ControlViewElement("Grid1", _grid1, _grid1.ViewObject);

      _grid2 = new XYGridStyleController(_doc.GridStyleSecond);
      Current.Gui.FindAndAttachControlTo(_grid2);
      ControlViewElement c2 = new ControlViewElement("Grid2", _grid2, _grid2.ViewObject);

      _background = new BrushControllerSimple(_doc.Background);
      Current.Gui.FindAndAttachControlTo(_background);
      ControlViewElement c3 = new ControlViewElement("Background", _background, _background.ViewObject);
      
        base.Initialize(new ControlViewElement[] { c1, c2, c3 }, false);
      }
    }
Ejemplo n.º 6
0
 public ControlViewElement(ControlViewElement from)
     : base(from)
 {
     Controller = from.Controller;
 }
Ejemplo n.º 7
0
		public void Initialize(IMVCAController[] childs, bool horizontalLayout)
		{
			_childController = new ControlViewElement[childs.Length];
			for (int i = 0; i < childs.Length; i++)
			{
				_childController[i] = new ControlViewElement(string.Empty, childs[i]);
			}
			_horizontalLayout = horizontalLayout;
			Initialize();
		}
Ejemplo n.º 8
0
		public MultiChildController(ControlViewElement[] childs, bool horizontalLayout)
		{
			Initialize(childs, horizontalLayout);
		}
Ejemplo n.º 9
0
		public void Initialize(ControlViewElement[] childs, bool horizontalLayout)
		{
			_childController = new ControlViewElement[childs.Length];
			for (int i = 0; i < childs.Length; i++)
			{
				_childController[i] = childs[i].Clone();
			}
			_horizontalLayout = horizontalLayout;
			Initialize();
		}
Ejemplo n.º 10
0
 public ControlViewElement(ControlViewElement from)
   : base(from)
 {
   this.Controller = from.Controller;
 }