using Remotely.Desktop.Core.ViewModels; using Remotely.Desktop.Win.Services; using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Input; namespace Remotely.Desktop.Win.ViewModels { public class PromptForAccessWindowViewModel : ViewModelBase { private string _organizationName = "your IT provider"; private string _requesterName = "a technician"; public string OrganizationName { get => _organizationName; set { _organizationName = value; FirePropertyChanged(nameof(OrganizationName)); } } public bool PromptResult { get; set; } public string RequesterName { get => _requesterName; set { _requesterName = value; FirePropertyChanged(nameof(RequesterName)); } } public ICommand SetResultNo => new Executor(param => { if (param is Window promptWindow) { PromptResult = false; promptWindow.Close(); } }); public ICommand SetResultYes => new Executor(param => { if (param is Window promptWindow) { PromptResult = true; promptWindow.Close(); } }); } }