// SPDX-License-Identifier: AGPL-3.0-only
/**
* Digital Voice Modem - Desktop Dispatch Console
* AGPLv3 Open Source. Use is subject to license terms.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* @package DVM / Desktop Dispatch Console
* @license AGPLv3 License (https://opensource.org/licenses/AGPL-3.0)
*
* Copyright (C) 2025 Caleb, K4PHP
*
*/
using System.Windows;
namespace dvmconsole
{
///
/// Interaction logic for DigitalPageWindow.xaml.
///
public partial class DigitalPageWindow : Window
{
private List systems = new List();
///
/// Destination ID.
///
public string DstId = string.Empty;
///
/// System.
///
public Codeplug.System RadioSystem = null;
///
/// Initializes a new instance of the class.
///
///
public DigitalPageWindow(List systems)
{
InitializeComponent();
this.systems = systems;
SystemCombo.DisplayMemberPath = "Name";
SystemCombo.ItemsSource = systems;
SystemCombo.SelectedIndex = 0;
}
/** WPF Events */
///
///
///
///
///
private void SendPageButton_Click(object sender, RoutedEventArgs e)
{
RadioSystem = SystemCombo.SelectedItem as Codeplug.System;
DstId = DstIdText.Text;
DialogResult = true;
Close();
}
} // public partial class DigitalPageWindow : Window
} // namespace dvmconsole