using HStation.Vmo; using Yw.WinFrmUI.Page; namespace HStation.WinFrmUI { public partial class AssetsBluntheadMgrPage : DocumentPage { public AssetsBluntheadMgrPage() { InitializeComponent(); this.PageTitle.Caption = "闷头型号"; this.PageTitle.HeaderSvgImage = AssetsMainSvgImageHelper.Blunthead; this.PageTitle.SvgImageSize = new Size(24, 24); this.assetsBluntheadSeriesMgrTreeCtrl1.FocusedChangedEvent += assetsBluntheadSeriesMgrTreeCtrl1_FocusedChangedEvent; } /// /// 初始化数据源 /// public override void InitialDataSource() { base.InitialDataSource(); InitialMainPage(); this.assetsBluntheadSeriesMgrTreeCtrl1.InitialData(); } //初始化型号页面 private void InitialMainPage() { this.assetsBluntheadMainMgrPage1.PageGuid = new PageGuid() { Modular = AssetsFunctionHelper.Modular, MoudingType = eMoudingType.Tab, Function = AssetsFunctionHelper.BluntheadMainMgr, TagName = string.Empty }; this.assetsBluntheadMainMgrPage1.IsExistPageEvent += this.IsExistPage; this.assetsBluntheadMainMgrPage1.CreatePageEvent += this.CreatePage; this.assetsBluntheadMainMgrPage1.FindPageEvent += this.FindPage; } //聚焦改变 private void assetsBluntheadSeriesMgrTreeCtrl1_FocusedChangedEvent(AssetsBluntheadSeriesVmo series) { this.assetsBluntheadMainMgrPage1.SetBindingData(series); } } }