/// <summary> /// /// </summary> /// <param name="obj"></param> public void OperationCommand(object obj) { var sitename = obj.ToString(); Operation = IISManagement.StartOrStopWeb(sitename); if (Operation == "启动") { RunState = "未运行"; } else { RunState = "运行中"; } }
/// <summary> /// /// </summary> public ViewModel() { this.SiteInfo = IISManagement.SiteInfos(); }