예제 #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();
        }
예제 #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();
        }