Beispiel #1
0
        public void ShowContextMenu()
        {
            RadegastContextMenuStrip menu = GetContextMenu();

            if (menu.HasSelection)
            {
                menu.Show(listFriends, listFriends.PointToClient(MousePosition));
            }
        }
Beispiel #2
0
        public void ShowContextMenu()
        {
            RadegastContextMenuStrip menu = GetContextMenu();

            if (menu.HasSelection)
            {
                menu.Show(listFriends, listFriends.PointToClient(System.Windows.Forms.Control.MousePosition));
            }
        }
Beispiel #3
0
        private void rtbChat_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                return;
            }
            RadegastContextMenuStrip cms = new RadegastContextMenuStrip();

            instance.ContextActionManager.AddContributions(cms, instance.Client);
            cms.Show((Control)sender, new Point(e.X, e.Y));
        }
Beispiel #4
0
        /// <summary>
        /// Right-clicks on participants beings up Mute, etc menu
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void participants_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right) return;

            RadegastContextMenuStrip cms = new RadegastContextMenuStrip();
            instance.ContextActionManager.AddContributions(cms, instance.Client);
            cms.Show((Control)sender, new Point(e.X, e.Y));
        }