public frmSettings(NetworkAnimation networkAnimation)
        {
            m_networkAnimation = networkAnimation;
            InitializeComponent();

            Text += " - " + Application.ProductName;
        }
Beispiel #2
0
        public NetworkNotificationApp()
        {
            m_networkAnimation = new NetworkAnimation();
            m_networkAnimation.TrafficReceived     += m_networkAnimation_TrafficReceived;
            m_networkAnimation.TrafficSent         += m_networkAnimation_TrafficSent;
            m_networkAnimation.TrafficSentReceived += m_networkAnimation_TrafficSentReceived;
            m_networkAnimation.NetworkAvailable    += m_networkAnimation_NetworkAvailable;
            m_networkAnimation.NetworkUnavailable  += m_networkAnimation_NetworkUnavailable;
            m_networkAnimation.IconStyleChanged    += m_networkAnimation_IconStyleChanged;

            m_contextMenu              = new ContextMenuNetworkNotification(m_networkAnimation);
            m_contextMenu.ExitClicked += m_contextMenu_ExitClicked;
            m_notifyIcon.ContextMenu   = m_contextMenu;

            m_notifyIcon.Text    = "Network Activity";
            m_notifyIcon.Visible = true;
        }
 public ContextMenuNetworkNotification(NetworkAnimation animation)
 {
     m_networkAnimation = animation;
 }