コード例 #1
0
 /// <summary>
 /// 锁定任务
 /// </summary>
 private bool LockResult()
 {
     if (this.CurrentTask != null)
     {
         using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
         {
             if (_msc.LockQueryTaskResult(this.CurrentTask.TaskID))
             {
                 this.gridView1.BeginUpdate();
                 this.CurrentTask.ResultLocked = true;
                 this.gridView1.EndDataUpdate();
                 RaiseMenuChanged();
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
     }
     else
     {
         return(false);
     }
 }