private Task <Boolean> RefrashDataAsync() { return(Task.Run <Boolean>(() => { this.Dispatcher.Invoke((Action)(() => { this.Cursor = Cursors.Wait; RefreshData rd = new RefreshData(_Kdm); _dt = rd.RefreshRafDetayData(); _rows = ClassifyingTips(_ListTip); RefreshHucre(); RefreshTipGrid(); this.Cursor = Cursors.Arrow; })); return true; } )); }
private Task <Boolean> RefreshDataAsync() { return(Task.Run <Boolean>(() => { this.Dispatcher.Invoke((Action)(() => { this.Cursor = Cursors.Wait; RefreshData rfData = new RefreshData(_CurrentKatModel); List <KatDetayModel> list = rfData.RefreshMainDataList(); _canvas.Tag = list; _CurrentDataList = list; RefrashCanvas(_canvas); SetDepoLblValues(_CurrentKatModel.UlId, _CurrentKatModel.Id); SetKatLblValues(_CurrentKatModel); RefreshRafOranGrid(); this.Cursor = Cursors.Arrow; })); return true; } )); }