internal static void HidePlayerInfo()
 {
     if (frmMain.Instance.InvokeRequired)
     {
         frmMain.Instance.BeginInvoke(new Action(HidePlayerInfo));
     }
     else
     {
         if (PlayerInfoForm != null)
         {
             PlayerInfoForm.Animator.Direction = FormAnimator.AnimationDirection.Left;
             PlayerInfoForm.Close();
         }
     }
 }
        internal static void ShowPlayerInfo(Models.Player player)
        {
            if (frmMain.Instance.InvokeRequired)
            {
                frmMain.Instance.BeginInvoke(new Action <Models.Player>(ShowPlayerInfo), player);
            }
            else
            {
                if (PlayerInfoForm != null)
                {
                    PlayerInfoForm.Dispose();
                }

                PlayerInfoForm = new frmPlayerInfo(player);
                PlayerInfoForm.Show();
            }
        }