Пример #1
0
 public static bool ShouldHideOnClose(this TrayIcon.Behavior behavior)
 {
     return(behavior == TrayIcon.Behavior.CloseToTray || behavior == TrayIcon.Behavior.Combined);
 }
Пример #2
0
 public static bool ShouldDisplayIcon(this TrayIcon.Behavior behavior)
 {
     return(behavior != TrayIcon.Behavior.Disabled);
 }
Пример #3
0
 public static bool ShouldHideOnMinimize(this TrayIcon.Behavior behavior){
     return behavior == TrayIcon.Behavior.MinimizeToTray || behavior == TrayIcon.Behavior.Combined;
 }