Multiprocotol Terminalprogram (BAT)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MultiTerm/MultiTerm.Protocols/IProtocolSettingsViewModel.cs

27 lines
835 B

using MultiTerm.Protocols.Types;
namespace MultiTerm.Protocols;
public interface IProtocolSettingsViewModel
{
/// <summary>
/// Indicates the protocol type of the implementing SettingsViewModel.
/// </summary>
ProtocolType ProtocolType { get; }
/// <summary>
/// Indicates wether the settings can currently be edited.
/// </summary>
bool AreEditable { get; }
/// <summary>
/// Event that is thrown when the user requested to connect to the device with the entered settings.
/// Provides protocol settings to use for connection.
/// </summary>
event EventHandler<ConnectionRequestEventArgs> ConnectRequested;
/// <summary>
/// Event that is thrown when the user requested to disconnect from the device.
/// </summary>
event EventHandler? DisconnectRequested;
}