Ejemplo n.º 1
0
        protected virtual void buttonFlatlandEditFixedTiles_Clicked(object sender, System.EventArgs e)
        {
            var tileDialog = new DialogEditFixedTiles(spinButtonFlatlandBoardSize.ValueAsInt);

            tileDialog.Grid.SetPixels(flatlandFixedTiles);

            if (tileDialog.Run() == (int)ResponseType.Ok)
            {
                flatlandFixedTiles = new List <Point>(tileDialog.Grid.EnabledPixels);
            }

            tileDialog.Destroy();
        }
Ejemplo n.º 2
0
        protected virtual void buttonFlatlandEditFixedTiles_Clicked(object sender, System.EventArgs e)
        {
            var tileDialog = new DialogEditFixedTiles(spinButtonFlatlandBoardSize.ValueAsInt);
              tileDialog.Grid.SetPixels(flatlandFixedTiles);

              if (tileDialog.Run() == (int)ResponseType.Ok)
              {
            flatlandFixedTiles = new List<Point>(tileDialog.Grid.EnabledPixels);
              }

              tileDialog.Destroy();
        }