Shuxia Ning
2024-12-20 1bf6b7a300e21e9b8996f9ebeeb55a1eccda7a02
WinFrmUI/HStation.WinFrmUI.Assets.Core/20-exchanger/04-curveql/AssetsExchangerCurveQLMgrPage.cs
@@ -24,8 +24,6 @@
            this.phartDiagramRelationListCtrl1.SelectedChangedEvent += PhartDiagramRelationListCtrl1_SelectedChangedEvent;
        }
        private AssetsExchangerMainVmo _vmo = null;
        private List<PhartDiagramRelationVmo> _allBindingList = null;
        private PhartDiagramRelationVmo _relation = null;
@@ -51,19 +49,27 @@
        //excel
        private void Excel()
        {
            if (_vmo == null)
            {
                return;
            }
            var dlg = new ImportAssetsExchangerCurveQLByExcelDlg();
            dlg.ReloadDataEvent += (rhs) =>
            {
                _allBindingList.Add(rhs);
                this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList);
            };
            dlg.SetBindingData();
            dlg.SetBindingData(_vmo);
            dlg.ShowDialog();
        }
        //图片
        private void Picture()
        {
            if (_vmo == null)
            {
                return;
            }
            var vm = GetCurrentViewModel();
            if (vm == null)
            {
@@ -75,7 +81,7 @@
                _allBindingList.Add(rhs);
                this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList);
            };
            dlg.SetBindingData();
            dlg.SetBindingData(_vmo);
            dlg.ShowDialog();
        }