Exemplo n.º 1
0
 private void notifyIcon_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 1)
     {
         if (m_QuickInformationDialog == null || m_QuickInformationDialog.IsDisposed)
         {
             m_QuickInformationDialog = new QuickInformationDialog(this);
             m_QuickInformationDialog.Show();
         }
         else
         {
             m_QuickInformationDialog.Activate();
         }
     }
     else if (e.Clicks == 2)
     {
         if (m_QuickInformationDialog != null)
         {
             m_QuickInformationDialog.Close();
         }
         showRShareToolStripMenuItem.PerformClick();
     }
 }
Exemplo n.º 2
0
 private void notifyIcon_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 1)
     {
         if (m_QuickInformationDialog == null || m_QuickInformationDialog.IsDisposed)
         {
             m_QuickInformationDialog = new QuickInformationDialog(this);
             m_QuickInformationDialog.Show();
         }
         else
             m_QuickInformationDialog.Activate();
     }
     else if (e.Clicks == 2)
     {
         if (m_QuickInformationDialog != null)
             m_QuickInformationDialog.Close();
         showRShareToolStripMenuItem.PerformClick();
     }
 }