public Form1(Controller c) { Controller = c; InitializeComponent(); timerDblClick.Interval = SystemInformation.DoubleClickTime; LogHandler = new LogDelegate(Log); ExecHandler = new ExecDelegate(Exec); _contextMenu = new System.Windows.Forms.ContextMenu(); _itemStart = _contextMenu.MenuItems.Add(Babelfish.Translate("Start Avatar"), new System.EventHandler(_menuStart_Click)); _itemStop = _contextMenu.MenuItems.Add(Babelfish.Translate("Stop Avatar"), new System.EventHandler(_menuStop_Click)); _contextMenu.MenuItems.Add("-"); _itemAutostart = _contextMenu.MenuItems.Add(Babelfish.Translate("Start with Windows"), new System.EventHandler(_menuShow_Autostart)); if (Controller.ShowShow) { _itemShow = _contextMenu.MenuItems.Add(Babelfish.Translate("Show"), new System.EventHandler(_menuShow_Click)); } _contextMenu.MenuItems.Add(Babelfish.Translate("Exit Tray Icon"), new System.EventHandler(_menuExit_Click)); notifyIcon1.ContextMenu = _contextMenu; }
internal void ShowDisconnectedAppStatus() { notifyIcon1.Icon = Properties.Resources.IconDisconnected; notifyIcon1.Text = Babelfish.Translate("Avatar not connected"); }
internal void ShowUnknownAppStatus() { notifyIcon1.Icon = Properties.Resources.IconUnknown; notifyIcon1.Text = Babelfish.Translate("Avatar"); }