e-register check Püfungvorbereitung und -abschluss

This commit is contained in:
Stoyan Zlatev
2024-12-03 17:03:33 +01:00
parent 6bb2ba0b68
commit a385f35efd
88 changed files with 5088 additions and 1213 deletions
@@ -12,14 +12,14 @@
using System.Threading.Tasks;
using System.Windows.Input;
internal class SIRTBroadcasterVM : BaseViewModel<SIRTBroadcasterVM>
internal class SIRTBroadcasterVM : ViewModel<SIRTBroadcasterVM>
{
private readonly SIRTFactory broadcaster;
private readonly ManagementEventWatcher comWatcher;
public SIRTBroadcasterVM()
{
this.broadcaster = AppHost.SIRTBroadcaster;
this.broadcaster = AppHost.GetService<SIRTFactory>();
this.Connections = new ObservableCollection<SIRTConnectionVM>();
this.PortNames = new ObservableCollection<string>();
this.AddSIRTCommand = new Command(this.AddSIRTConnectionCommandHandler);
@@ -79,7 +79,7 @@
{
if (!string.IsNullOrWhiteSpace(this.PortName))
{
var connection = this.broadcaster.CreateConnection(this.PortName);
var connection = this.broadcaster.ConnectSIRT(this.PortName);
var connectionVM = new SIRTConnectionVM(connection);
connectionVM.Removed += this.RemoveSIRTConnectionVM;
this.Connections.Add(connectionVM);
@@ -97,7 +97,7 @@
Task.Run(() =>
{
this.broadcaster.RemoveConnections();
this.broadcaster.CloseConnections();
this.InvokeAsync(this.Connections.Clear);
this.UpdatePortNames();
});
@@ -110,7 +110,7 @@
Task.Run(() =>
{
this.broadcaster.RemoveConnection(connectionVM.PortName);
this.broadcaster.CloseConnection(connectionVM.PortName);
})
.ContinueWith(_ =>
{
@@ -138,7 +138,7 @@
foreach (var portName in portNames)
{
var connection = this.broadcaster.CreateConnection(portName);
var connection = this.broadcaster.ConnectSIRT(portName);
var sirtVM = new SIRTConnectionVM(connection);
this.Connections.Add(sirtVM);
this.ClearEnabled = true;