Popup() публичный Метод

public Popup ( ChatRoom selectedRoom ) : void
selectedRoom ChatRoom
Результат void
Пример #1
0
        private void chatList_ButtonPressEvent(object o, ButtonPressEventArgs args)
        {
            TreePath path;

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

            if (args.Event.Button == 3)
            {
                ChatMenu menu = new ChatMenu();
                menu.Popup(GetSelectedChatRoom());
            }
        }
Пример #2
0
        private void chatList_ButtonPressEvent(object o, ButtonPressEventArgs args)
        {
            TreePath path;
            if (chatList.GetPathAtPos ((int)args.Event.X, (int)args.Event.Y, out path))
                chatList.Selection.SelectPath (path);
            else
                chatList.Selection.UnselectAll ();

            if (args.Event.Button == 3) {
                ChatMenu menu = new ChatMenu();
                menu.Popup(GetSelectedChatRoom());
            }
        }