public SpecialBoxHint(PythonComponent_OBSOLETE component) { if (component == null) throw new ArgumentNullException("component"); _component = component; }
public DynamicHint(PythonComponent_OBSOLETE component) { if (component == null) throw new ArgumentNullException("component"); m_component = component; }
public SpecialBoxHint(PythonComponent_OBSOLETE component) { if (component == null) { throw new ArgumentNullException("component"); } _component = component; }
public DynamicHint(PythonComponent_OBSOLETE component) { if (component == null) { throw new ArgumentNullException("component"); } m_component = component; }
public IGH_DocumentObject Upgrade(IGH_DocumentObject target, GH_Document document) { PythonComponent_OBSOLETE component_OBSOLETE = target as PythonComponent_OBSOLETE; if (component_OBSOLETE == null) { return(null); } ZuiPythonComponent component_new = new ZuiPythonComponent(); component_new.HiddenCodeInput = component_OBSOLETE.HiddenCodeInput; component_new.HiddenOutOutput = component_OBSOLETE.HiddenOutOutput; if (component_new.HiddenCodeInput) { component_new.Code = component_OBSOLETE.Code; } if (GH_UpgradeUtil.SwapComponents(component_OBSOLETE, component_new)) { bool toRhinoScript = (component_OBSOLETE.DocStorageMode == DocReplacement.DocStorage.AutomaticMarshal); { foreach (var c in component_new.Params.Input) { var sc = c as Param_ScriptVariable; if (sc == null) { continue; } if (toRhinoScript) { IGH_TypeHint newHint; if (PythonHints.ToNewRhinoscriptHint(sc.TypeHint, out newHint)) { sc.TypeHint = newHint; } } else { PythonHints.ToNewRhinoCommonHint(sc); } } } component_OBSOLETE.Dispose(); return(component_new); } return(null); }
public OldComponentIOMarshal(object document, PythonComponent_OBSOLETE component) { _document = document; _objectTable = _document.Objects; _component = component; }