private void InitPictures()
        {
            m_lines             = new NetIconImage(NetIconImage.IconStyle.Lines);
            m_linesSent         = new NetIconImage(NetIconImage.IconStyle.Lines);
            m_linesReceived     = new NetIconImage(NetIconImage.IconStyle.Lines);
            m_linesSentReceived = new NetIconImage(NetIconImage.IconStyle.Lines);

            m_grow             = new NetIconImage(NetIconImage.IconStyle.Grow);
            m_growSent         = new NetIconImage(NetIconImage.IconStyle.Grow);
            m_growReceived     = new NetIconImage(NetIconImage.IconStyle.Grow);
            m_growSentReceived = new NetIconImage(NetIconImage.IconStyle.Grow);

            pictureBoxNetLines.Image = Bitmap.FromHicon(
                m_lines.IconNet().Handle);
            pictureBoxNetReceivedLines.Image = Bitmap.FromHicon(
                m_linesReceived.IconReceived().Handle);
            pictureBoxNetSentLines.Image = Bitmap.FromHicon(
                m_linesSent.IconSent().Handle);
            pictureBoxNetSentReceivedLines.Image = Bitmap.FromHicon(
                m_linesSentReceived.IconSentReceived().Handle);

            pictureBoxNetGrow.Image = Bitmap.FromHicon(
                m_grow.IconNet().Handle);
            pictureBoxNetReceivedGrow.Image = Bitmap.FromHicon(
                m_growReceived.IconReceived().Handle);
            pictureBoxNetSentGrow.Image = Bitmap.FromHicon(
                m_growSent.IconSent().Handle);
            pictureBoxNetSentReceivedGrow.Image = Bitmap.FromHicon(
                m_growSentReceived.IconSentReceived().Handle);
        }
Esempio n. 2
0
 void m_networkAnimation_NetworkAvailable(object sender, NetworkStatusChangedEventArgs e)
 {
     m_notifyIcon.Icon = m_netIconImage.IconNet();
     if (e.StatusChanged)
     {
         m_notifyIcon.ShowBalloonTip(1000,
                                     Application.ProductName, "You are now connected.", ToolTipIcon.Info);
     }
 }