lixiaojun
2024-10-18 1fe41eb1c9f2b2914b4a66a145f1ad0a75b9c915
WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkManageMainPage.cs
@@ -24,8 +24,8 @@
        {
            _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)
@@ -39,7 +39,7 @@
                    _allBindingList.Add(new ThreeLinkViewModel(item));
                }
            }
            this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false);
            this.threeLinkViewModelBindingSource.ResetBindings(false);
        }
        /// <summary>
@@ -60,7 +60,7 @@
                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;
@@ -86,7 +86,7 @@
                {
                    rhs.ID = id;
                    _allBindingList.Add(new ThreeLinkViewModel(await _bll.GetByID(id)));
                    this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false);
                    this.threeLinkViewModelBindingSource.ResetBindings(false);
                    return true;
                }
                return false;
@@ -113,7 +113,7 @@
               if (await _bll.Update(rhs))
               {
                   vm.Reset(rhs);
                   this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false);
                   this.threeLinkViewModelBindingSource.ResetBindings(false);
                   return true;
               }
               return false;
@@ -136,7 +136,7 @@
            if (groupresult)
            {
                _allBindingList.Remove(currentVm);
                this.AssetsThreelinkSeriesViewModelBindingSource.ResetBindings(false);
                this.threeLinkViewModelBindingSource.ResetBindings(false);
                TipFormHelper.ShowSucceed("删除成功!");
            }
            else