public void RegisterScript() { if (Project.IsLoaded && !Windows.ScriptEditors.Contains(this)) Windows.ScriptEditors.Add(this); }