Esempio n. 1
0
        public void DisplayAlert(object sender, EventArgs e)
        {
            IDisplayItem msg = null;

            lock (this.displayQue)
            {
                int count = this.displayQue.Count;
                if (count > 0)
                {
                    msg = this.displayQue[0];
                    this.displayQue.RemoveAt(0);
                }
            }

            if (msg != null)
            {
                if (msg.ItemType == DisplayItemType.CLIPBOARD)
                {
                    try
                    {
                        System.Windows.Forms.Clipboard.SetDataObject(((ClipboardAlert)msg).Text, true);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("Error Writting to Clipboard:" + Environment.NewLine + ex.ToString());
                    }
                }

                if (msg.ItemType == DisplayItemType.STATUS_SCREEN_SHOT ||
                    msg.ItemType == DisplayItemType.SCREEN ||
                    msg.ItemType == DisplayItemType.CLIPBOARD)
                {
                    DisplayScreenShot(msg);
                }
                else if (msg.DisplayAlert && !m_pauseMsgs)
                {
                    AlertScreen.DisplayAlert(msg);
                }

                if (this.activeTab == eTabs.eTab_Home)
                {
                    Display();
                }
            }
        }
Esempio n. 2
0
 private void notifyIcon_DoubleClick(object sender, EventArgs e)
 {
     if (ApplicationSettings.Instance.ShowLastMsg)
     {
         AlertScreen.DisplayAlert(null);
     }
     else
     {
         this.Show();
         this.notifyIcon.Visible = false;
         if (m_toolbar.Visible)
         {
             m_toolbar.hideToolbar();
         }
         else
         {
             m_toolbar.showToolbar();
         }
     }
 }
Esempio n. 3
0
 private void showLastMgToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AlertScreen.DisplayAlert(null);
 }