示例#1
0
        private void Notify(string message, string title = "", ToolTipIcon icon = ToolTipIcon.Info)
        {
            NotifyWindow nw = new NotifyWindow(title, message);

            nw.SetDimensions(200, 150);
            nw.Notify();

            //notifyIcon1.ShowBalloonTip(500, title, message, icon);
        }
示例#2
0
        /// <summary>
        /// 弹出提示消息窗口
        /// </summary>
        public void Notify(string caption, string content, int width, int height, int waitTime)
        {
            NotifyWindow notifyWindow = new NotifyWindow(caption, content);

            notifyWindow.TitleClicked += new System.EventHandler(notifyWindowClick);
            notifyWindow.TextClicked  += new EventHandler(notifyWindowClick);
            notifyWindow.SetDimensions(width, height);
            notifyWindow.WaitTime = waitTime;
            notifyWindow.Notify();
        }
 public void ShowMessage(string message, Action callback = null, string title = null)
 {
     var c = SynchronizationContext.Current;
     var tid = Thread.CurrentThread.ManagedThreadId;
     NotifyWindow notify = new NotifyWindow(message,title);
     if (callback != null)
     {
         notify.TextClicked += (_, __) => callback.Invoke();
     }
     //notify.WaitTime = 6000;
     notify.Notify();
 }
示例#4
0
        public void ShowMessage(string message, Action callback = null, string title = null)
        {
            var          c      = SynchronizationContext.Current;
            var          tid    = Thread.CurrentThread.ManagedThreadId;
            NotifyWindow notify = new NotifyWindow(message, title);

            if (callback != null)
            {
                notify.TextClicked += (_, __) => callback.Invoke();
            }
            //notify.WaitTime = 6000;
            notify.Notify();
        }
 //Notify icon la ilgili fonksiyonlar
 public void openModifyWindow()
 {
     if (running)
     {
         int s = (int)m_obj_MediaPosition.Duration;
         int h = s / 3600;
         int m = (s - (h * 3600)) / 60;
         s = s - (h * 3600 + m * 60);
         string time = String.Format("{0:D2}:{1:D2}:{2:D2}", h, m, s);
         string[] fullfilename = listoffilenames.Items[fileIndex].ToString().Split('\\');
         NotifyWindow notify = new NotifyWindow("Circass Media Player", fullfilename[fullfilename.Length - 1].ToString() + "\n Time ::" + time);
         notify.TitleClicked += new System.EventHandler(titleClick);
         notify.TextClicked += new System.EventHandler(textClick);
         notify.SetDimensions(130, 100);
         notify.Notify();
     }
 }