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);
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            pictureBoxNetReceivedLines.Image     = Bitmap.FromHicon(m_linesReceived.IconReceived().Handle);
            pictureBoxNetSentLines.Image         = Bitmap.FromHicon(m_linesSent.IconSent().Handle);
            pictureBoxNetSentReceivedLines.Image = Bitmap.FromHicon(m_linesSentReceived.IconSentReceived().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);
        }
Exemplo n.º 3
0
 void m_networkAnimation_TrafficReceived(object sender, EventArgs e)
 {
     m_notifyIcon.Icon = m_netIconImage.IconReceived();
 }