lixiaojun
2024-07-23 ec9bc16c81d897549568d826047da0189b8e85a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace HStation.WinFrmUI
{
    public partial class HomeXhsProjectPage : DocumentPage
    {
        public HomeXhsProjectPage()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
            this.PageTitle.Caption = "首页";
        }
 
        private Lazy<BLL.XhsProjectStd> _bllProjectStd = new(() => new BLL.XhsProjectStd());
 
        public override async void InitialDataSource()
        {
            var allProjectList = await _bllProjectStd.Value.GetAll();
            this.homeXhsProjectTreeListCtrl1.SetBindingData(allProjectList);
            await this.mapViewProjectListContainer1.InitialContainer();
        }
 
        private async void homeXhsProjectTreeListCtrl1_SelectProjectEvent(XhsProjectStdDto obj)
        {
            await this.mapViewProjectListContainer1.SelectProject(obj.ID.ToString());
            var vm = new HomeXhsProjectPropertyViewModel(obj);
            this.homeXhsProjectPropertyCtrl1.SelectedObject = vm;
        }
 
 
    }
}