FileFind.Meshwork.GtkClient.UserMenu.Popup C# (CSharp) Method

Popup() public method

public Popup ( ) : void
return void
        public void Popup()
        {
            Popup(null);
        }

Same methods

UserMenu::Popup ( Gtk.Widget widget ) : void

Usage Example

        private void userList_ButtonPressEvent(object o, Gtk.ButtonPressEventArgs args)
        {
            TreePath path;

            if (userList.GetPathAtPos((int)args.Event.X, (int)args.Event.Y, out path))
            {
                userList.Selection.SelectPath(path);
            }
            else
            {
                userList.Selection.UnselectAll();
            }

            var node = GetSelectedNode();

            if (map != null)
            {
                map.SelectNode(node);
            }

            if (args.Event.Button == 3)
            {
                if (node != null)
                {
                    UserMenu menu = new UserMenu(node.Network, node);
                    menu.Popup();
                }
            }
        }
All Usage Examples Of FileFind.Meshwork.GtkClient.UserMenu::Popup