public static bool Send(Objects.Client client, int eventId, string text, Constants.ContextMenuType contextMenuType, bool hasSeparator)
        {
            RemoveContextMenuPacket p = new RemoveContextMenuPacket(client);

            p.EventId         = eventId;
            p.Text            = text;
            p.ContextMenuType = contextMenuType;
            p.HasSeparator    = Convert.ToByte(hasSeparator);

            return(p.Send());
        }
示例#2
0
        public bool RemoveContextMenu(int eventId, string text, Constants.ContextMenuType type, bool hasSeparator)
        {
            if (client.Dll.Pipe == null)
            {
                client.Dll.InitializePipe();
                client.Dll.PipeIsReady.WaitOne();
            }

            if (eventId < 0 || eventId > 2000 || text == string.Empty)
            {
                return(false);
            }

            return(Packets.Pipes.RemoveContextMenuPacket.Send(client, eventId, text, type, hasSeparator));
        }