/*public void tabChat_tabSelected(object sender, EventArgs e) * { * if (tabChat.SelectedTab == tabServer) * { * onGlobal = false; * return; * } * if (tabChat.SelectedTab == tabGlobal) * { * onGlobal = true; * return; * } * }*/ #region PlayerViewer private void playerList_MouseDoubleClick(object sender, MouseEventArgs 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; } var v = new PlayerViewer(player); v.Show(); } catch { } //do nothing at all }
private void playerList_MouseDoubleClick(object sender, MouseEventArgs 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; var v = new PlayerViewer(player); v.Show(); } catch { } //do nothing at all }