コード例 #1
0
        public bool Apply(bool disposeController)
        {
            if (_scriptController.Apply(disposeController))
            {
                m_TempScript = (IFitFunctionScriptText)_scriptController.ModelObject;

                m_Script.CopyFrom(m_TempScript, false);
                m_TempScript = (IFitFunctionScriptText)m_Script.CloneForModification();
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
        public bool InitializeDocument(params object[] args)
        {
            if (args == null || args.Length == 0)
            {
                return(false);
            }
            var doc = args[0] as IFitFunctionScriptText;

            if (doc == null)
            {
                return(false);
            }

            m_Script     = doc;
            m_TempScript = (IFitFunctionScriptText)m_Script.CloneForModification();

            SetElements(true);

            return(true);
        }
コード例 #3
0
		public bool InitializeDocument(params object[] args)
		{
			if (args == null || args.Length == 0)
				return false;
			IFitFunctionScriptText doc = args[0] as IFitFunctionScriptText;
			if (doc == null)
				return false;

			this.m_Script = doc;
			m_TempScript = (IFitFunctionScriptText)m_Script.CloneForModification();

			SetElements(true);

			return true;
		}