Пример #1
0
        void HandleMapsMessage(List <string> msg)
        {
            var message = new MapsMessage();

            for (int i = 1; i < msg.Count; i++)
            {
                var rawDetection = msg[i].Split(',');
                message.Maps.Add(
                    new Map
                {
                    FloorNumber = Convert.ToInt16(rawDetection[0]),
                    Name        = rawDetection[1],
                    ImageUrl    = rawDetection[2]
                });
            }
            MapsReceived(this, new SonitorEventArgs(message));
        }
Пример #2
0
 void HandleMapsMessage( List<string> msg )
 {
     var message = new MapsMessage();
     for ( int i = 1; i < msg.Count; i++ )
     {
         var rawDetection = msg[ i ].Split( ',' );
         message.Maps.Add(
             new Map
             {
                 FloorNumber = Convert.ToInt16( rawDetection[ 0 ] ),
                 Name = rawDetection[ 1 ],
                 ImageUrl = rawDetection[ 2 ]
             } );
     }
     MapsReceived( this, new SonitorEventArgs( message ) );
 }