public void DeRegisterScript() { if (Project.IsLoaded && Windows.ScriptEditors.Contains(this)) Windows.ScriptEditors.Remove(this); }