private void RecreateDocument()
 {
     if (_document != null)
     {
         _document.Dispose();
     }
     _editor   = new GlobalVariablesEditor(_agsEditor.CurrentGame);
     _document = new ContentDocument(_editor, "Global Variables", this);
 }
 private void RecreateDocument()
 {
     if (_document != null)
     {
         _document.Dispose();
     }
     _editor   = new TextParserEditor(_agsEditor.CurrentGame.TextParser);
     _document = new ContentDocument(_editor, "Text Parser", this);
 }
Exemple #3
0
 private void RecreateDocument()
 {
     if (_document != null)
     {
         _document.Dispose();
     }
     _editor   = new LipSyncEditor(_agsEditor.CurrentGame.LipSync);
     _document = new ContentDocument(_editor, "Lip sync", this);
     _document.SelectedPropertyGridObject = _editor.EditingLipSync;
 }
Exemple #4
0
        private void Script_PanelClosed(object sender, EventArgs e)
        {
            // When they close the script window, dispose it.
            // This ensures that when they open it again they
            // get a clean version
            ContentDocument document = ((ContentDocument)sender);

            document.PanelClosed -= _panelClosedHandler;
            document.Dispose();

            foreach (Script script in _editors.Keys)
            {
                if (_editors[script] == document)
                {
                    _editors.Remove(script);
                    break;
                }
            }
        }