| | |
| | | /// <summary> |
| | | /// 水力计算事件 |
| | | /// </summary> |
| | | public event Action<Yw.Model.HydroModelInfo> HydroCalcuEvent; |
| | | public event Action HydroCalcuEvent; |
| | | |
| | | /// <summary> |
| | | /// 水力查看事件 |
| | |
| | | { |
| | | return; |
| | | } |
| | | this.groupForBottom.Visibility = LayoutVisibility.Always; |
| | | this.navigationFrame.Controls.Clear(); |
| | | this.navigationFrame.Pages.Clear(); |
| | | var wizardPageList = new List<IWizardPage<SetHydroCalcuPrefixViewModel>>(); |
| | |
| | | _wizard.InitialManager(wizardPageList.ToArray()); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public void SetFailedList(List<Yw.EPAnet.CalcuFailed> allFailedList) |
| | | { |
| | | this.groupForBottom.Visibility = LayoutVisibility.Never; |
| | | this.navigationFrame.Controls.Clear(); |
| | | this.navigationFrame.Pages.Clear(); |
| | | var ctrl = new HydroCalcuFailedCtrl(); |
| | | ctrl.Dock = DockStyle.Fill; |
| | | ctrl.SetBindingData(allFailedList); |
| | | AddPage(ctrl); |
| | | } |
| | | |
| | | //添加page |
| | | private void AddPage(Control ctrl) |
| | | { |
| | |
| | | { |
| | | return; |
| | | } |
| | | this.HydroCalcuEvent?.Invoke(hydroInfo); |
| | | this.HydroCalcuEvent?.Invoke(); |
| | | } |
| | | } |
| | | } |