| | |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 回调事件 |
| | | /// </summary> |
| | | public event Func<Vmo.PhartDiagramRelationExtensionsVmo, Task<bool>> ReloadDataEvent; |
| | | public event Func<Vmo.PhartDiagramRelationExtensionsVmo, string, string, Task<bool>> ReloadDataEvent; |
| | | |
| | | //确定 |
| | | private async void btnOk_Click(object sender, EventArgs e) |
| | | private async void GeneralOkAndCancelCtrl1_OkEvent() |
| | | { |
| | | var vmo = this.importCurveByExcelCtrl1.Get(); |
| | | var vmo = this.pumpChartExcelImportCtrl1.Get(); |
| | | var ExtensionsVmo = new PhartDiagramRelationExtensionsVmo(); |
| | | ExtensionsVmo.Diagram = vmo; |
| | | var result = await this.ReloadDataEvent.Invoke(ExtensionsVmo); |
| | | var result = await this.ReloadDataEvent.Invoke(ExtensionsVmo, this.textEditName.Text, this.textEditImportance.Text); |
| | | if (!result) |
| | | { |
| | | XtraMessageBox.Show("导入失败!"); |