public void GetProperties_For_Singularity()
        {
            var retriever = new FramePropertyRetrieverToPlainText();
            IFrame frame = BasicFrameGenerator.CreateTable(new string[] {"X"});

            string results = retriever.GetProperties(frame);

            Assert.NotNull(results);
        }
        public void GetProperties(int id, int numCols, int numRows)
        {
            var retriever = new FramePropertyRetrieverToPlainText();
            IFrame frame = null;

            if (numCols == 0)
                frame = BasicFrameGenerator.CreateTableWith0Cols();
            else if (numCols == 2)
                frame = BasicFrameGenerator.CreateTableWith2Cols(numRows);
            else if (numCols == 5)
                frame = BasicFrameGenerator.CreateTableWith5Cols(numRows);

            string results = retriever.GetProperties(frame);

            Assert.NotNull(results);
        }
예제 #3
0
        public void Execute(IParamMgr paramMgr, IInputPortMgr inPortMgr, ICompoundSettingsMgr settings, IOutputPortMgr outPortMgr)
        {
            SetStatus(FxStatus.Validating, StatusChangeDriver.NormalTransition, "Beginning pre-execution validations.");

            if (paramMgr != null)
            {
                var myParamMgr = paramMgr as IDataPropertiesElementParamMgr;
                if (myParamMgr != null)
                {
                    #region Log

                    _Logger.Info("Execute() begin");
                    #endregion

                    // begin execution ------------------------------------------------
                    SetStatus(FxStatus.Executing, StatusChangeDriver.NormalTransition, "Beginning execution.");

                    //1) get the input data
                    IInputDataPort inPort = inPortMgr[0] as IInputDataPort;
                    var retriever = new FramePropertyRetrieverToPlainText();
                    Properties = retriever.GetProperties(inPort.InputDataObj);
                    // inform listeners that values/items at the core have been modified and to refesh the UI.
                    OnCoreModified(new CoreModifiedEventArgs());

                    // now set the input data as the item to be displaed in the secondary fx M
                }
                else
                    SetStatus(FxStatus.UnInitialized, StatusChangeDriver.ValidationFailure, "ParamMgr is not of type IDataPropertiesElementParamMgr.");
            }
            else
            {
                SetStatus(FxStatus.UnInitialized, StatusChangeDriver.ValidationFailure, "ParamMgr is null.");
            }
        }
예제 #4
0
파일: UITestForm.cs 프로젝트: BgRva/Blob1
 private void openWithRandomDataToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     IFrame frame = BasicFrameGenerator.CreateTable(11, new Type[] { typeof(int), typeof(double) });
     var view = new DataPropertiesForm();
     var retriever = new FramePropertyRetrieverToPlainText();
     view.SetPropertiesText(retriever.GetProperties(frame));
     view.Show();
 }
예제 #5
0
파일: UITestForm.cs 프로젝트: BgRva/Blob1
 private void createDataToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     var frameGen = new FrameGeneratorForm();
     var dialogResult = frameGen.ShowDialog();
     if (dialogResult == DialogResult.OK)
     {
         IFrame frame = frameGen.OutputFrame;
         var view = new DataPropertiesForm();
         var retriever = new FramePropertyRetrieverToPlainText();
         view.SetPropertiesText(retriever.GetProperties(frame));
         view.Show();
     }
 }