예제 #1
0
 //Start of the list of event handlers that take data from the client
 void HandleRemoveGameEvent(object sender, EventArgs m)
 {
     EventArgStructures.StringVal input = (EventArgStructures.StringVal)m;
     if (GameStrings.Contains(input.val))
     {
         GameStrings.Remove(input.val);
     }
 }
예제 #2
0
        // End of the functions used to interact

        //Start of the list of event handlers that take data from the client

        //Start of the list of event handlers that take data from the client
        void HandleAddGameEvent(object sender, EventArgs m)
        {
            EventArgStructures.StringVal input = (EventArgStructures.StringVal)m;
            if (!GameStrings.Contains(input.val))
            {
                GameStrings.Add(input.val);
            }
        }