Example #1
0
        public void EndEditing()
        {
            if (_editor != null)
            {
                // If EndEditing was called by the form closing, don't try to call it again.
                if(!_editor.Disposing)
                    _editor.Close();
                _editor = null;
            }

            // Regardless of the Form's status, start simulating again
            _simulateOn = true;
        }
Example #2
0
 public void BeginEditing()
 {
     if (_editor == null)
     {
         _simulateOn = false;
         _editor = new EditorForm();
         _editor.Show(Form.FromChildHandle(_game.Window.Handle));
     }
 }