Ejemplo n.º 1
0
        //================================
        public Checker()
        {
            m_config = new QuistLoader.Config();

              Bitmap skin_bmp = new Bitmap(@"resources\notification.png");
              Bitmap close_bmp = new Bitmap(@"resources\close.png");

              m_taskbarNotifer = new CustomUIControls.TaskbarNotifier();
              m_taskbarNotifer.SetBackgroundBitmap(skin_bmp, Color.FromArgb(0, 0, 0));
              m_taskbarNotifer.SetCloseBitmap(close_bmp, Color.FromArgb(0, 0, 0), new Point(280, 8));
              m_taskbarNotifer.TitleRectangle = new Rectangle(5, 3, 170, 25);
              m_taskbarNotifer.ContentRectangle = new Rectangle(0, 30, 300, 70);
              m_taskbarNotifer.TitleClick += new EventHandler(this.TitleClick);
              m_taskbarNotifer.ContentClick += new EventHandler(this.ContentClick);
              m_taskbarNotifer.CloseClick += new EventHandler(this.CloseClick);

              m_taskbarNotifer.CloseClickable = true;
              //m_taskbarNotifer.TitleClickable = true;
              m_taskbarNotifer.ContentClickable = true;
              //m_taskbarNotifer.EnableSelectionRectangle = true;
              m_taskbarNotifer.KeepVisibleOnMousOver = true;
              m_taskbarNotifer.ReShowOnMouseOver = true;
        }