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;
|
}
|
|
|
}
|
}
|