Example #1
0
 private static void InitializeTrayIconEvents()
 {
     TrayIcon.AddEventHandler(TrayIcon.EventType.ShowMainWindow, (s, e) => { ShowConfiguration(); });
     TrayIcon.AddEventHandler(TrayIcon.EventType.DoubleClick, (s, e) => { ShowConfiguration(); });
     TrayIcon.AddEventHandler(TrayIcon.EventType.About, (s, e) => { ShowAbout(); });
     TrayIcon.AddEventHandler(TrayIcon.EventType.CheckUpdates, (s, e) => {
         if (WebServerController.CheckForUpdates() == false)
         {
             MessageBox.Show("You are running the latest version of Point of Sale.");
         }
     });
     TrayIcon.AddEventHandler(TrayIcon.EventType.Log, (s, e) =>
     {
         ShowLog();
     });
 }
Example #2
0
 /**
  * check for web root updates
  */
 public static void CheckForWebrootUpdates()
 {
     WebServerController.CheckForUpdates();
 }