Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active May 2, 2025 23:45
Show Gist options
  • Save mcsee/04db525ba36d6411ebe2ba7158562abf to your computer and use it in GitHub Desktop.
Save mcsee/04db525ba36d6411ebe2ba7158562abf to your computer and use it in GitHub Desktop.
This gist belongs to Clean Code Cookbook http://cleancodecookbook.com By Maximiliano Contieri http://maximilianocontieri.com
public static class WallpaperInitializer
{
private static bool wallpaperWasDefined = false;
public static void InitializeWallpaper()
{
if (wallpaperWasDefined)
{
LoadWallpaperBitmap();
}
Report(WallpaperReady);
// Always report, regardless of condition
}
private static void LoadWallpaperBitmap()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment