| | |
| | | this.phartDiagramRelationListCtrl1.SelectedChangedEvent += PhartDiagramRelationListCtrl1_SelectedChangedEvent; |
| | | } |
| | | |
| | | |
| | | |
| | | private AssetsExchangerMainVmo _vmo = null; |
| | | private List<PhartDiagramRelationVmo> _allBindingList = null; |
| | | private PhartDiagramRelationVmo _relation = null; |
| | |
| | | //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) |
| | | { |
| | |
| | | _allBindingList.Add(rhs); |
| | | this.phartDiagramRelationListCtrl1.SetBindingData(_allBindingList); |
| | | }; |
| | | dlg.SetBindingData(); |
| | | dlg.SetBindingData(_vmo); |
| | | dlg.ShowDialog(); |
| | | } |
| | | |