mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-30 00:56:07 +03:00
40 lines
943 B
C#
40 lines
943 B
C#
|
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 NaiveProxyInstallerViewModel : MvxViewModel<Record>
|
|||
|
{
|
|||
|
public Host Host { get; set; }
|
|||
|
|
|||
|
public NaiveProxySettings Settings { get; set; }
|
|||
|
|
|||
|
public override void Prepare(Record parameter)
|
|||
|
{
|
|||
|
var record = Utils.DeepClone(parameter);
|
|||
|
Host = record.Host;
|
|||
|
Settings = record.NaiveProxySettings;
|
|||
|
}
|
|||
|
|
|||
|
private bool _connected;
|
|||
|
public bool Connected
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _connected;
|
|||
|
}
|
|||
|
set
|
|||
|
{
|
|||
|
_connected = value;
|
|||
|
RaisePropertyChanged("Connected");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public string CommandText { get; set; }
|
|||
|
|
|||
|
}
|
|||
|
}
|