Exemplo n.º 1
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
     {
         List <MDQuery_Task> _ret = _msc.GetQueryTaskList().ToList <MDQuery_Task>();
         e.Result = _ret;
     }
 }
Exemplo n.º 2
0
 private void InitForm()
 {
     using (MetaDataQueryServiceClient _msc = new MetaDataQueryServiceClient())
     {
         _taskList = _msc.GetQueryTaskList().ToList <MDQuery_Task>();
     }
     this.sinoCommonGrid1.DataSource = _taskList;
     _initFinished       = true;
     this.timer1.Enabled = true;
 }