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); } }
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); }
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; }