disable voice

This commit is contained in:
2026-03-26 23:47:58 +02:00
parent 78e2483e7f
commit 27817754ce
7 changed files with 44 additions and 24 deletions

View File

@@ -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;
}
}