| | |
| | | namespace HStation.WinFrmUI |
| | | using HStation.Vmo; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class MapViewProjectListContainer : UserControl, IMapViewProjectListContainer |
| | | { |
| | |
| | | private bool _isInitialized; |
| | | |
| | | /// <summary> |
| | | /// 显示边框 |
| | | /// </summary> |
| | | [Browsable(true)] |
| | | public bool ShowBoder { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 初始话容器 |
| | | /// </summary> |
| | | public async Task InitialContainer() |
| | |
| | | /// <summary> |
| | | /// 设置项目列表 |
| | | /// </summary> |
| | | public async Task<bool> SetProjectList(List<XhsProjectStdDto> allProjectList) |
| | | public async Task<bool> SetProjectList(List<XhsProjectVmo> allProjectList) |
| | | { |
| | | if (!_isInitialized) |
| | | { |
| | |
| | | return await this.webViewControl1.EvaluateScriptAsync<bool>("cancelSelectProject()"); |
| | | } |
| | | |
| | | //绘制边框 |
| | | protected override void OnPaint(PaintEventArgs e) |
| | | { |
| | | base.OnPaint(e); |
| | | if (this.ShowBoder) |
| | | { |
| | | this.DrawBorder(e, Color.LightGray); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |