| | |
| | | { |
| | | _bll = new BLL.AssetsThreelinkMain(); |
| | | this.threeLinkTreeListCtrl1.SetBindingData(); |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.DataSource = _allBindingList; |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.DataSource = _allBindingList; |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | private async void ThreeLinkTreeListCtrl1_ReloadEvent(long SeriesID) |
| | |
| | | _allBindingList.Add(new ThreeLinkViewModel(item)); |
| | | } |
| | | } |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | if (await _bll.UpdateDefaultStatus(vm.ID, rhs)) |
| | | { |
| | | vm.Reset(await _bll.GetByID(vm.ID)); |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | { |
| | | rhs.ID = id; |
| | | _allBindingList.Add(new ThreeLinkViewModel(await _bll.GetByID(id))); |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | if (await _bll.Update(rhs)) |
| | | { |
| | | vm.Reset(rhs); |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | if (groupresult) |
| | | { |
| | | _allBindingList.Remove(currentVm); |
| | | this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false); |
| | | this.threeLinkViewModelBindingSource.ResetBindings(false); |
| | | TipFormHelper.ShowSucceed("删除成功!"); |
| | | } |
| | | else |