public void OpenScript( ScriptAssetItem scriptItem )
        {
            if( _scripts.ContainsKey( scriptItem.Script.Name ) )
                return;

            ScriptDocument scriptDoc = new ScriptDocument( scriptItem );
            Global.MainWindow.ShowScriptEditor( );
            scriptDoc.Show( _dockPanel );
            scriptDoc.FormClosed += new FormClosedEventHandler( ScriptDoc_FormClosed );
            _scripts.Add( scriptDoc.ScriptName, scriptDoc );
        }
 public void NewScript( )
 {
     Global.AssetsBrowser.AddNewScript( "Script", Classes.ScriptFormat.Blank );
     ScriptDocument scriptDoc = new ScriptDocument( Global.AssetsBrowser.LastCreatedScript );
 }