mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Additional logging for dispose and disconnet events.
This commit is contained in:
@@ -161,6 +161,7 @@ namespace GHelper.Peripherals.Mouse
|
|||||||
|
|
||||||
public override void Dispose()
|
public override void Dispose()
|
||||||
{
|
{
|
||||||
|
Logger.WriteLine(GetDisplayName() + ": Disposing");
|
||||||
HidSharp.DeviceList.Local.Changed -= Device_Changed;
|
HidSharp.DeviceList.Local.Changed -= Device_Changed;
|
||||||
base.Dispose();
|
base.Dispose();
|
||||||
}
|
}
|
||||||
@@ -200,6 +201,7 @@ namespace GHelper.Peripherals.Mouse
|
|||||||
|
|
||||||
protected virtual void OnDisconnect()
|
protected virtual void OnDisconnect()
|
||||||
{
|
{
|
||||||
|
Logger.WriteLine(GetDisplayName() + ": OnDisconnect()");
|
||||||
if (Disconnect is not null)
|
if (Disconnect is not null)
|
||||||
{
|
{
|
||||||
Disconnect(this, EventArgs.Empty);
|
Disconnect(this, EventArgs.Empty);
|
||||||
|
|||||||
Reference in New Issue
Block a user