public void RMPlayer(string account)
        {
            Gtk.Application.Invoke(delegate
            {
                OpenGraal.Common.Players.GraalPlayer player = this.Framework.FindPlayer(account);

                /*
                 * TreeNode[] player2 = this.Players.Nodes.Find(account,true);
                 * TreeNode[] rc = this.RCs.Nodes.Find(account,true);
                 *
                 * if (player2.Length == 0)
                 * {
                 *      // Do nothing
                 * }
                 * else
                 * {
                 *      player2[0].Remove();
                 * }
                 *
                 * if (rc.Length == 0)
                 * {
                 *      // Do nothing
                 * }
                 * else
                 * {
                 *      rc[0].Remove();
                 * }
                 */
            }
                                   );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Set Properties
 /// </summary>
 public void SetMessage(OpenGraal.Common.Players.GraalPlayer player, OpenGraal.Core.CString Packet)
 {
     Gtk.Application.Invoke(delegate
     {
         if (player != null)
         {
             this.WriteText("(" + player.Nickname + "): " + Packet.ReadChars(Packet.ReadGUByte1()));
         }
     }
                            );
 }