コード例 #1
0
        /// <summary>
        /// Nofity
        /// </summary>
        /// <param name="message"></param>
        /// <param name="actionAddress"></param>
        public void Notify(string message, string actionAddress)
        {
            m_actionAddress = actionAddress;
            TaskbarNotifier taskbarNotifier = CreateTaskbarNotifier();

            if (taskbarNotifier.TaskbarState != TaskbarNotifier.TaskbarStates.hidden)
            {
                taskbarNotifier.Hide();
            }
            taskbarNotifier.Show(m_taskName, message, 500, 3000, 500);
        }
コード例 #2
0
        protected virtual TaskbarNotifier CreateTaskbarNotifier()
        {
            TaskbarNotifier taskbarNotifier = new TaskbarNotifier();

            taskbarNotifier.SetBackgroundBitmap(Feng.Windows.ImageResource.Get("Feng", "Images.notifierSkin.png").Reference, Color.FromArgb(255, 0, 255));
            taskbarNotifier.SetCloseBitmap(Feng.Windows.ImageResource.Get("Feng", "Images.notifierClose.png").Reference, Color.FromArgb(255, 0, 255), new Point(184, 9));
            taskbarNotifier.TitleRectangle   = new Rectangle(10, 3, 180, 20);
            taskbarNotifier.ContentRectangle = new Rectangle(10, 22, 191, 80);
            //m_taskbarNotifier.TitleClick += new EventHandler(TitleClick);

            //m_taskbarNotifier.CloseClick += new EventHandler(CloseClick);
            taskbarNotifier.CloseClickable           = true;
            taskbarNotifier.TitleClickable           = false;
            taskbarNotifier.ContentClickable         = true;
            taskbarNotifier.EnableSelectionRectangle = true;
            taskbarNotifier.KeepVisibleOnMousOver    = true;
            taskbarNotifier.ReShowOnMouseOver        = true;

            taskbarNotifier.ContentClick += new EventHandler(taskbarNotifier_ContentClick);
            return(taskbarNotifier);
        }
コード例 #3
0
        protected virtual TaskbarNotifier CreateTaskbarNotifier()
        {
            TaskbarNotifier taskbarNotifier = new TaskbarNotifier();
            taskbarNotifier.SetBackgroundBitmap(Feng.Windows.ImageResource.Get("Feng", "Images.notifierSkin.png").Reference, Color.FromArgb(255, 0, 255));
            taskbarNotifier.SetCloseBitmap(Feng.Windows.ImageResource.Get("Feng", "Images.notifierClose.png").Reference, Color.FromArgb(255, 0, 255), new Point(184, 9));
            taskbarNotifier.TitleRectangle = new Rectangle(10, 3, 180, 20);
            taskbarNotifier.ContentRectangle = new Rectangle(10, 22, 191, 80);
            //m_taskbarNotifier.TitleClick += new EventHandler(TitleClick);

            //m_taskbarNotifier.CloseClick += new EventHandler(CloseClick);
            taskbarNotifier.CloseClickable = true;
            taskbarNotifier.TitleClickable = false;
            taskbarNotifier.ContentClickable = true;
            taskbarNotifier.EnableSelectionRectangle = true;
            taskbarNotifier.KeepVisibleOnMousOver = true;
            taskbarNotifier.ReShowOnMouseOver = true;

            taskbarNotifier.ContentClick += new EventHandler(taskbarNotifier_ContentClick);
            return taskbarNotifier;
        }