copy from WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/14-pipe/SetHydroPipeDlg.cs
copy to WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/15-translation/SetHydroTranslationDlg.cs
Îļþ´Ó WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/14-pipe/SetHydroPipeDlg.cs ¸´ÖÆ |
| | |
| | | namespace Yw.WinFrmUI |
| | | { |
| | | public partial class SetHydroPipeDlg : DevExpress.XtraEditors.XtraForm |
| | | public partial class SetHydroTranslationDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public SetHydroPipeDlg() |
| | | public SetHydroTranslationDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | this.layoutControl1.SetupLayoutControl(); |
| | | this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; |
| | | InitialLinkStatus(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éè½½æ°æ®äºä»¶ |
| | | /// </summary> |
| | | public event Action<List<Yw.Model.HydroPipeInfo>> ReloadDataEvent; |
| | | public event Action<List<Yw.Model.HydroTranslationInfo>> ReloadDataEvent; |
| | | |
| | | //ææé¨ä»¶å表 |
| | | private List<Yw.Model.HydroPipeInfo> _allParterList = null; |
| | | private List<Yw.Model.HydroTranslationInfo> _allParterList = null; |
| | | |
| | | /// <summary> |
| | | /// ç»å®æ°æ® |
| | | /// </summary> |
| | | public void SetBindingData(Yw.Model.HydroPipeInfo parter) |
| | | public void SetBindingData(Yw.Model.HydroTranslationInfo parter) |
| | | { |
| | | var allParterList = parter == null ? null : new List<Yw.Model.HydroPipeInfo>() { parter }; |
| | | var allParterList = parter == null ? null : new List<Yw.Model.HydroTranslationInfo>() { parter }; |
| | | this.SetBindingData(allParterList); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç»å®æ°æ® |
| | | /// </summary> |
| | | public void SetBindingData(List<Yw.Model.HydroPipeInfo> allParterList) |
| | | public void SetBindingData(List<Yw.Model.HydroTranslationInfo> allParterList) |
| | | { |
| | | _allParterList = allParterList; |
| | | if (_allParterList != null && _allParterList.Count == 1) |
| | |
| | | } |
| | | |
| | | //ç¡®å® |
| | | private void btnOk_Click(object sender, EventArgs e) |
| | | private void GeneralOkAndCancelCtrl1_OkEvent() |
| | | { |
| | | if (_allParterList == null || _allParterList.Count < 1) |
| | | { |