disable voice
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using System.IO.Ports;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ModuleWeather;
|
||||
@@ -12,13 +11,11 @@ public partial class WeatherView : UserControl
|
||||
|
||||
private void Update(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
var ports = SerialPort.GetPortNames();
|
||||
PortComboBox.ItemsSource = ports; // Привязываем массив к списку
|
||||
|
||||
|
||||
|
||||
}
|
||||
private void OnPortChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
WeatherModule.port = PortComboBox.SelectedItem as string;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user