Remotely/Desktop.Linux/ViewModels/HostNamePromptViewModel.cs
2021-07-29 07:56:43 -07:00

25 lines
565 B
C#

using System.Windows.Input;
using Avalonia.Controls;
using ReactiveUI;
using Remotely.Desktop.Core.ViewModels;
using Remotely.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.ViewModels
{
public class HostNamePromptViewModel : ReactiveViewModel
{
public string _host;
public string Host
{
get => _host;
set => this.RaiseAndSetIfChanged(ref _host, value);
}
public ICommand OKCommand => new Executor((param) =>
{
(param as Window).Close();
});
}
}