Example #1
0
 private void playerList_SelectedIndexChanged(object sender, EventArgs e)
 {
     try {
         string s = ( string )playerList.Items[playerList.SelectedIndex];
         s = s.Substring(s.IndexOf('-'),
                         s.Length - s.IndexOf('-'))
             .Replace("-", "")
             .Replace(" ", "")
             .Trim();
         PlayerInfo player = PlayerDB.FindPlayerInfoExact(s);
         if (player == null)
         {
             return;
         }
         v = new SkinViewer(player);
         v.Show();
     } catch { } //do nothing at all
 }
Example #2
0
 private void playerList_SelectedIndexChanged( object sender, EventArgs e )
 {
     try {
         string s = ( string )playerList.Items[playerList.SelectedIndex];
         s = s.Substring( s.IndexOf( '-' ),
             s.Length - s.IndexOf( '-' ) )
             .Replace( "-", "" )
             .Replace( " ", "" )
             .Trim();
         PlayerInfo player = PlayerDB.FindPlayerInfoExact( s );
         if ( player == null ) return;
         v = new SkinViewer( player );
         v.Show();
     } catch {  } //do nothing at all
 }