using MvvmCross.ViewModels; using ProxySuper.Core.Models; using ProxySuper.Core.Models.Hosts; using ProxySuper.Core.Models.Projects; using ProxySuper.Core.Services; namespace ProxySuper.Core.ViewModels { public class XrayInstallerViewModel : MvxViewModel { public Host Host { get; set; } public XraySettings Settings { get; set; } public override void Prepare(Record parameter) { var record = Utils.DeepClone(parameter); Host = record.Host; Settings = record.XraySettings; } private bool _connected; public bool Connected { get { return _connected; } set { _connected = value; RaisePropertyChanged("Connected"); } } public string CommandText { get; set; } } }