コード例 #1
0
        public void EhView_SelectLabelColumn()
        {
            SingleColumnChoice choice = new SingleColumnChoice();

            choice.SelectedColumn = _doc.LabelColumn as DataColumn;
            object choiceAsObject = choice;

            if (Current.Gui.ShowDialog(ref choiceAsObject, "Select label column"))
            {
                choice = (SingleColumnChoice)choiceAsObject;


                _labelColumn = choice.SelectedColumn;
                InitializeLabelColumnText();
            }
        }
コード例 #2
0
        void EhView_ChooseNegativeError(object sender, EventArgs e)
        {
            SingleColumnChoice choice = new SingleColumnChoice();

            choice.SelectedColumn = _tempNegErrorColumn != null ? _tempNegErrorColumn as DataColumn: _doc.NegativeErrorColumn as DataColumn;
            object choiceAsObject = choice;

            if (Current.Gui.ShowDialog(ref choiceAsObject, "Select negative error column"))
            {
                choice = (SingleColumnChoice)choiceAsObject;

                if (choice.SelectedColumn is INumericColumn)
                {
                    _tempNegErrorColumn = (INumericColumn)choice.SelectedColumn;
                    _view.NegativeError = _tempNegErrorColumn.FullName;
                }
            }
        }
コード例 #3
0
		public SingleColumnChoiceController(SingleColumnChoice doc)
		{
			_doc = doc;
			Initialize(true);
		}
コード例 #4
0
 public SingleColumnChoiceController(SingleColumnChoice doc)
 {
   _doc = doc;
 }
コード例 #5
0
 void EhView_ChooseNegativeError(object sender, EventArgs e)
 {
   SingleColumnChoice choice = new SingleColumnChoice();
   choice.SelectedColumn = _tempNegErrorColumn != null ? _tempNegErrorColumn as DataColumn: _doc.NegativeErrorColumn as DataColumn;
   object choiceAsObject = choice;
   if (Current.Gui.ShowDialog(ref choiceAsObject, "Select negative error column"))
   {
     choice = (SingleColumnChoice)choiceAsObject;

     if (choice.SelectedColumn is INumericColumn)
     {
       _tempNegErrorColumn = (INumericColumn)choice.SelectedColumn;
       _view.NegativeError = _tempNegErrorColumn.FullName;
     }
   }
 }
コード例 #6
0
 public SingleColumnChoiceController(SingleColumnChoice doc)
 {
     _doc = doc;
     Initialize(true);
 }
コード例 #7
0
    public void EhView_SelectLabelColumn()
    {
      SingleColumnChoice choice = new SingleColumnChoice();
      choice.SelectedColumn = _doc.LabelColumn as DataColumn;
      object choiceAsObject = choice;
      if(Current.Gui.ShowDialog(ref choiceAsObject,"Select label column"))
      {
        choice = (SingleColumnChoice)choiceAsObject;

       
        _labelColumn = choice.SelectedColumn;
        InitializeLabelColumnText();
        
      }
    }
コード例 #8
0
 public SingleColumnChoiceController(SingleColumnChoice doc)
 {
     _doc = doc;
 }
コード例 #9
0
    public void EhView_ChooseDependentColumn(int idx)
    {
      SingleColumnChoice choice = new SingleColumnChoice();
      choice.SelectedColumn = _doc.DependentVariables(idx) as DataColumn;
      object choiceAsObject = choice;
      if (Current.Gui.ShowDialog(ref choiceAsObject, "Select dependent column"))
      {
        choice = (SingleColumnChoice)choiceAsObject;

        if (choice.SelectedColumn is INumericColumn)
        {
          _doc.SetDependentVariable(idx, (INumericColumn)choice.SelectedColumn);
        }
        else
        {
          Current.Gui.ErrorMessageBox("Choosen column is not numeric!");
        }
      }
      _view.Refresh();
    }