private void InitializeIcon() { // get icon info _notifyIconInfo = _trayIconService.GetIconInfo(); // initialize code here _notifyIcon = new NotifyIcon(); _notifyIcon.Text = _notifyIconInfo.Title; _notifyIcon.Icon = _notifyIconInfo.Icon; _notifyIcon.Click += new EventHandler(NotifyIcon_Click); if (_notifyIconInfo.ShowBaloonTip) { _notifyIcon.BalloonTipText = _notifyIconInfo.BalloonTipText; _notifyIcon.BalloonTipTitle = _notifyIconInfo.Title; } }
private void ConfigureSizeElement(GuiElement element, FleetReport report, IIconInfo iconInfo) { var sizeElement = element as GuiSizeElement; sizeElement.SetValues(iconInfo, report.Category); }