예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        public void OperationCommand(object obj)
        {
            var sitename = obj.ToString();

            Operation = IISManagement.StartOrStopWeb(sitename);
            if (Operation == "启动")
            {
                RunState = "未运行";
            }
            else
            {
                RunState = "运行中";
            }
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 public ViewModel()
 {
     this.SiteInfo = IISManagement.SiteInfos();
 }