public static void SetMinimizeToTray(bool value) { settings.MinimizeToTray = value; settings.Save(); }