예제 #1
0
        /*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
        }
예제 #2
0
 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
 }