mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-22 21:26:09 +03:00
46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
|
using MvvmCross.ViewModels;
|
|||
|
using ProxySuper.Core.Models;
|
|||
|
using ProxySuper.Core.Models.Hosts;
|
|||
|
using ProxySuper.Core.Models.Projects;
|
|||
|
using ProxySuper.Core.Services;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ProxySuper.Core.ViewModels
|
|||
|
{
|
|||
|
public class TrojanGoInstallerViewModel : MvxViewModel<Record>
|
|||
|
{
|
|||
|
public Host Host { get; set; }
|
|||
|
|
|||
|
public TrojanGoSettings Settings { get; set; }
|
|||
|
|
|||
|
public override void Prepare(Record parameter)
|
|||
|
{
|
|||
|
var record = Utils.DeepClone(parameter);
|
|||
|
Host = record.Host;
|
|||
|
Settings = record.TrojanGoSettings;
|
|||
|
}
|
|||
|
|
|||
|
private bool _connected;
|
|||
|
public bool Connected
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _connected;
|
|||
|
}
|
|||
|
set
|
|||
|
{
|
|||
|
_connected = value;
|
|||
|
RaisePropertyChanged("Connected");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public string CommandText { get; set; }
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|