public void DisableLinkedForm(bool close) { if (close && m_form != null && !m_form.IsDisposed) m_form.Disable(); m_form = null; }
public void OpenEditor() { var attachedComp = this.Owner as ScriptingAncestorComponent; if (attachedComp != null && !attachedComp.Locked) { attachedComp.CheckAndSetupActions(); if (m_form == null || m_form.IsDisposed) m_form = new PythonScriptForm(attachedComp); if (!m_form.Visible) m_form.Show(Grasshopper.Instances.DocumentEditor); } }
public void OpenEditor() { var attachedComp = this.Owner as ScriptingAncestorComponent; if (attachedComp != null && !attachedComp.Locked) { attachedComp.CheckIfSetupActionsAreNecessary(); if (m_form == null || m_form.IsDisposed) m_form = new PythonScriptForm(attachedComp); if (!m_form.Visible) { m_form.Show(Grasshopper.Instances.DocumentEditor); attachedComp.OnDisplayExpired(true); } else { m_form.Focus(); } } }
internal void DisableLinkedEditor(bool close) { if (close && m_form != null && !m_form.IsDisposed) m_form.Disable(); m_form = null; }