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