void but_Click(object sender, EventArgs e)
 {
     if (Host.FPDrawnPolygon != null && Host.FPDrawnPolygon.Points.Count > 2)
     {
         Form gridui = new GridUI(this);
         MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);
         gridui.ShowDialog();
     }
     else
     {
         CustomMessageBox.Show("Please define a polygon.", "Error");
     }
 }
 void but_Click(object sender, EventArgs e)
 {
     if (Host.FPDrawnPolygon != null && Host.FPDrawnPolygon.Points.Count > 2)
     {
         Form gridui = new GridUI(this);
         MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);
         gridui.ShowDialog();
     }
     else
     {
         CustomMessageBox.Show("Please define a polygon.", "Error");
     }
 }
Example #3
0
 public void but_Click(object sender, EventArgs e)
 {
     if (Host.FPDrawnPolygon != null && Host.FPDrawnPolygon.Points.Count > 2)
     {
         using (Form gridui = new GridUI(this))
         {
             MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);
             gridui.ShowDialog();
         }
     }
     else
     {
         CustomMessageBox.Show("请绘制一个多边形区域!", "Error");
     }
 }