forked from yanw/App_win_iot_V2.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
50 lines
1.7 KiB
using IOTContainer.Common;
|
|
using IOTContainer.MvvmBase;
|
|
using IOTContainer.View;
|
|
using System.Windows;
|
|
|
|
namespace IOTContainer.ViewModel
|
|
{
|
|
public class VersionInfoViewModel : ViewModelBase
|
|
{
|
|
private string _containerVersion;
|
|
public string ContainerVersion
|
|
{
|
|
get { return ComParameters.Parameters.containerVersion; }
|
|
set { base.SetProperty(ref _containerVersion, value, "ContainerVersion"); }
|
|
}
|
|
private string _webVersion;
|
|
public string WebVersion
|
|
{
|
|
get
|
|
{
|
|
return string.IsNullOrEmpty(ComParameters.Parameters.webVersion) ? "应用未下发" : (EdgeWindow.HasInstallWebview2() ? ComParameters.Parameters.webVersion : "缺少浏览器运行环境");
|
|
}
|
|
set { base.SetProperty(ref _webVersion, value, "WebVersion"); }
|
|
}
|
|
private string _devName;
|
|
public string DevName
|
|
{
|
|
get { return ComParameters.Parameters.devName; }
|
|
set { base.SetProperty(ref _devName, value, "DevName"); }
|
|
}
|
|
private Visibility _webVis;
|
|
public Visibility WebVis
|
|
{
|
|
get { return ComParameters.Parameters.devType == "信发" ? Visibility.Collapsed : Visibility.Visible; }
|
|
set { base.SetProperty(ref _webVis, value, "WebVis"); }
|
|
}
|
|
private string _ip;
|
|
public string IP
|
|
{
|
|
get { return ComParameters.Parameters.ip; }
|
|
set { base.SetProperty(ref _ip, value, "IP"); }
|
|
}
|
|
private string _mac;
|
|
public string MAC
|
|
{
|
|
get { return ComParameters.Parameters.mac; }
|
|
set { base.SetProperty(ref _mac, value, "MAC"); }
|
|
}
|
|
}
|
|
}
|
|
|