Skip to content

Commit

Permalink
fix: change type to Paired from UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
exendahal committed Mar 30, 2024
1 parent 3437845 commit 56a9e14
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions example/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public ObservableCollection<DeviceModel> PairedList
private enum _ChangeType
{
UUIDs,
Connected
Connected,
Paired
}


public MainWindowViewModel()
{
RemoveDeviceCommand = new RelayCommand(OnRemoveClick);
Expand Down Expand Up @@ -95,7 +97,7 @@ private async void GetPairedList()
});
}
}
private void StateChanged(object? sender, ConnectionStateChangedEventArgs e)
private void StateChanged(object? sender, ConnectionStateChangedEventArgs e)
{
var state = e.State;
Console.WriteLine("Connection status: " + e.State);
Expand Down Expand Up @@ -136,7 +138,7 @@ private async void OnDeviceConnectedAsync(IDevice1 device, PropertyChanges chang
{
switch (changeType)
{
case _ChangeType.UUIDs:
case _ChangeType.Paired:
var paired = await device.GetPairedAsync();
if (!paired)
{
Expand Down

0 comments on commit 56a9e14

Please sign in to comment.