コード例 #1
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.");
            }
        }
コード例 #2
0
ファイル: CompoundFxBase.cs プロジェクト: BgRva/Blob1
        internal void _Execute( IParamMgr paramMgr, 
                                IInputPortMgr inPortMgr, 
                                ICompoundSettingsMgr settings, 
                                IOutputPortMgr outPortMgr)
        {
            SetStatus(FxStatus.Validating, StatusChangeDriver.NormalTransition, "Beginning pre-execution validations.");

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

            //        Log(BlueSpider.Common.Constants.LogEntryTitle_Start, null);
            //        #endregion

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

            //        //1) get the input data
            //        IInputDataPort inPort = inPortMgr[0] as IInputDataPort;
            //        InputData = 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.");
            }
        }
コード例 #3
0
 internal void PersistSettingsMgr(ICompoundSettingsMgr settingsMgr, System.Xml.XmlWriter writer)
 {
     SettingsPersister.PersistSettings(settingsMgr, writer);
     SettingsPersister.Reset();
 }
コード例 #4
0
ファイル: CompoundFxBase.cs プロジェクト: BgRva/Blob1
 public abstract void ExecuteCore(IParamMgr paramMgr, 
                                  IInputPortMgr inPortMgr, 
                                  ICompoundSettingsMgr settings, 
                                  IOutputPortMgr outPortMgr);