Esempio 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();
        }
Esempio 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();
        }