Last active
May 2, 2025 23:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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