/// <summary>
        /// 添加记录
        /// </summary>
        private void BtnInsert_Click(object sender)
        {
            // NavigationService.Navigate(new Uri("/Views/Maintenance/RFIDAddView.xaml", UriKind.RelativeOrAbsolute));
            PushRuleEditView view = new PushRuleEditView(null);

            view.ShowDialog();
            BtnSearch_Click(null);
        }
 /// <summary>
 /// 修改记录
 /// </summary>
 private void BtnUpdate_Click(object sender)
 {
     if (View.DGSelect.SelectedItem == null)
     {
         MessageBox.Show("请选择要修改的记录!");
     }
     foreach (var item in View.DGSelect.Items)
     {
         if (View.DGSelect.SelectedItem == item)
         {
             PushRule model = item as PushRule;
             //FuncModule gnmk = (FuncModule)sender;
             PushRuleEditView view = new PushRuleEditView(model);
             view.ShowDialog();
             BtnSearch_Click(null);
         }
     }
 }