Exemplo n.º 1
0
 //Constructor
 public static void Init()
 {
     TrayMenu      = new IconMenu();
     InvokeControl = new Control();
     InvokeControl.CreateControl();
     _iconLock = new object();
 }
Exemplo n.º 2
0
 //Unload the tray manager and all icons.
 public static void Dispose()
 {
     if (trayIcons != null)
     {
         for (Int32 i = 0; i <= trayIcons.GetUpperBound(0); i++)
         {
             trayIcons[i].Dispose();
             trayIcons[i] = null;
         }
     }
     dummyIcon.Dispose();
     dummyIcon = null;
     TrayMenu.Dispose();
     TrayMenu = null;
     InvokeControl.Dispose();
     InvokeControl = null;
 }
Exemplo n.º 3
0
 //Unload the tray manager and all icons.
 public static void Dispose()
 {
     if (trayIcons != null)
     {
         for (Int32 i = 0; i <= trayIcons.GetUpperBound(0); i++)
         {
             trayIcons[i].Dispose();
             trayIcons[i] = null;
         }
     }
     dummyIcon.Dispose();
     dummyIcon = null;
     TrayMenu.Dispose();
     TrayMenu = null;
     InvokeControl.Dispose();
     InvokeControl = null;
 }
Exemplo n.º 4
0
 //Constructor
 public static void Init()
 {
     TrayMenu = new IconMenu();
     InvokeControl = new Control();
     InvokeControl.CreateControl();
     _iconLock = new object();
 }