public void Dispose() { if (_form != null) { _form.Dispose(); _form = null; } }
public void Dispose() { if (_form != null) { _allWindows.Remove(this); _form.Dispose(); _form = null; } }
void Dispose(bool disposing) { if (disposing) { if (_form != null) { UnregisterFromAllWindows(); _form.Dispose(); _form = null; } } }
void Dispose(bool disposing) { if (disposing) { if (Form != null) { UnregisterFromAllWindows(); Form.Dispose(); Form = null; } } _platform = null; Game = null; Mouse.Window = null; }
void Dispose(bool disposing) { if (disposing) { if (_form != null) { UnregisterFromAllWindows(); _form.Dispose(); _form = null; } } _platform = null; Game = null; Mouse.SetWindows(null); Device.KeyboardInput -= OnRawKeyEvent; Device.RegisterDevice(UsagePage.Generic, UsageId.GenericKeyboard, DeviceFlags.Remove); }