Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        void but_Click(object sender, EventArgs e)
        {
            var gridui = new GridUIv2(this);

            MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);

            gridui.ShowDialog();
        }
        void but_Click(object sender, EventArgs e)
        {
            var gridui = new GridUIv2(this);
            MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);

                gridui.ShowDialog();
          
        }
Ejemplo n.º 3
0
        void but_Click(object sender, EventArgs e)
        {
            var gridui = new GridUIv2(this);
            MissionPlanner.Utilities.ThemeManager.ApplyThemeTo(gridui);

            if (Host.FPDrawnPolygon != null && Host.FPDrawnPolygon.Points.Count > 2)
            {
                gridui.ShowDialog();
            }
            else
            {
                if (CustomMessageBox.Show("No polygon defined. Load a file?", "Load File", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    gridui.LoadGrid();
                    gridui.ShowDialog();
                }
                else
                {
                    CustomMessageBox.Show("Please define a polygon.", "Error");
                }
            }
        }