/// <summary>
 /// 移除服务器
 /// </summary>
 /// <param name="kongzhi"></param>
 public void Remove_fu(Kongzhi kongzhi)
 {
     try
     {
         App.Peizhi_.Remove_ip(kongzhi.Fuwuqi_Ip_);
         Kongzhis.Remove(kongzhi);
     }
     catch
     {
     }
 }
        /// <summary>
        /// 分析从控制中心获取的数据
        /// </summary>
        /// <param name="json_str"></param>
        public void Fengxi_shuju(string json_str, Fuwuqi_ip fuwuqi_Ip)
        {
            try
            {
                Shuju_chuang shuju_Chuang = null;
                Kongzhi      kongzhi      = null;

                using (TextReader str = new StringReader(json_str))
                {
                    JsonSerializer serializer = new JsonSerializer();
                    shuju_Chuang = (Shuju_chuang)serializer.Deserialize(str, typeof(Shuju_chuang));
                }
                if (shuju_Chuang != null)
                {
                    //查找是否存在控制中心
                    foreach (var item in Kongzhis)
                    {
                        if (item.Shuju.Weiyi_shibie == shuju_Chuang.Kongzhi.Weiyi_shibie)
                        {
                            kongzhi = item;
                        }
                    }
                    if (kongzhi == null)
                    {
                        kongzhi = new Kongzhi();
                        kongzhi.chushihua(shuju_Chuang.Kongzhi, fuwuqi_Ip);
                        Kongzhis.Add(kongzhi);
                    }

                    //调用控制中心更新
                    kongzhi.Gengxin(shuju_Chuang);
                }
            }
            catch (Exception exc)
            {
            }
        }
 private void Linshi_BoilerEventLog(daima.Kongzhi status)
 {
     NavigationService.Navigate(new kongzhiqi(status));
 }
 public kongzhiqi(daima.Kongzhi kong_)
 {
     kongzhi_ = kong_;
     InitializeComponent();
     Loaded += Kongzhi_Loaded;
 }
 public Caozong_Kongzhi(daima.Kongzhi kongzhi)
 {
     kongzhi_ = kongzhi;
     InitializeComponent();
     Loaded += Caozong_Kongzhi_Loaded;
 }