コード例 #1
0
        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);
        }
コード例 #2
0
 void m_networkAnimation_IconStyleChanged(object sender, IconStyleChangedEventArgs e)
 {
     m_netIconImage = new NetIconImage(e.IconStyle);
 }