using HStation.WinFrmUI;
|
using Yw.WebBrower;
|
|
namespace HStation.Desktop
|
{
|
public partial class MainForm : Form
|
{
|
public MainForm()
|
{
|
InitializeComponent();
|
}
|
|
|
private async void MainForm_Load(object sender, EventArgs e)
|
{
|
this.mapViewProjectListContainer1.LoadCompletedEvent += MapViewProjectListContainer1_LoadCompletedEvent;
|
this.mapViewProjectListContainer1.SelectProjectEvent += MapViewProjectListContainer1_SelectProjectEvent;
|
await this.mapViewProjectListContainer1.InitialContainer();
|
}
|
|
private bool MapViewProjectListContainer1_SelectProjectEvent(string arg)
|
{
|
MessageBox.Show(arg);
|
return true;
|
}
|
|
private async void MapViewProjectListContainer1_LoadCompletedEvent()
|
{
|
var projectList = new List<MapProjectViewModel>() {
|
new MapProjectViewModel(){
|
Id="1",
|
Name="TEST01",
|
Description="CESHI01",
|
Point=new Yw.Model.Map.Point(121.516899,31.132442)
|
},
|
new MapProjectViewModel(){
|
Id="1",
|
Name="TEST01",
|
Description="CESHI01",
|
Point=new Yw.Model.Map.Point(116.422636,39.884519)
|
}
|
};
|
|
|
await this.mapViewProjectListContainer1.SetProjectList(projectList);
|
}
|
|
|
|
|
}
|
}
|