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; }
public void BeginEditing() { if (_editor == null) { _simulateOn = false; _editor = new EditorForm(); _editor.Show(Form.FromChildHandle(_game.Window.Handle)); } }