private void Handle_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Entity.EFOperation.TitleInfo titleInfo = new Entity.EFOperation.TitleInfo();
         TitleHandleRequest           request   = new TitleHandleRequest();
         //request.PageIndex = 0;
         //request.PageSize = 20;
         ////request.IsOccupy = 0;
         //PageNo = request.PageIndex;
         //request.UserNo = No;
         request.ID = ViewModel.SelectItem.ID;
         var str = titleInfo.TitleHandle(request);
         if (str == 1)
         {
             //Entity.EFOperation.TitleInfo titleInfo = new Entity.EFOperation.TitleInfo();
             TitleInfoRequest requestTitleInfo = new TitleInfoRequest();
             requestTitleInfo.PageIndex = ViewModel.PageNo;
             requestTitleInfo.PageSize  = 20;
             //request.IsOccupy = 0;
             requestTitleInfo.UserNo = ViewModel.No;
             var strTitleInfo = titleInfo.SelectAllTitleInfoList(requestTitleInfo);
             if (strTitleInfo.RowCount > 0)
             {
                 ViewModel.PageMax = strTitleInfo.PageMax;
                 var tList = strTitleInfo.mainWindowModels.ToList();
                 ObservableCollection <MainWindowModel> oc = new ObservableCollection <MainWindowModel>();
                 tList.ForEach(x => oc.Add(x));
                 ViewModel.Items = oc;
             }
         }
         else
         {
             return;
         }
         //var result = new ActionResult();
         //result.Result = true;
     }
     catch (Exception)
     {
     }
     finally
     {
     }
 }
 private void TitleHandle_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.DialogResult dr = System.Windows.Forms.MessageBox.Show("隐藏数据不可撤销,确认隐藏数据吗?", "温馨提示", System.Windows.Forms.MessageBoxButtons.YesNo);
     if (dr.ToString() == "Yes")
     {
         Entity.EFOperation.TitleInfo titleInfo = new Entity.EFOperation.TitleInfo();
         TitleHandleRequest           request   = new TitleHandleRequest();
         var str = titleInfo.TitleHandle(txtKeyWorlds.Text);
         if (str == 1)
         {
             this.warpPanelKeys.Children.Clear();
             this.AddStackPanel.Children.Clear();
             MessageBox.Show("成功隐藏该数据");
             LoadData();
         }
         else
         {
             return;
         }
     }
 }