Esempio n. 1
0
 public Client(NexonSocket client, NexonSocket server) : base(client, server)
 {
     ClientHandlers = new NexonPatron <Client> .Handler[0x100];
     ServerHandlers = new NexonPatron <Client> .Handler[0x100];
     Client         = client;
     Server         = server;
     Tab            = new ClientTab(this);
     Skillbook      = new SlotObjectCollection <Client, Skill>(this, 90);
     Spellbook      = new SlotObjectCollection <Client, Spell>(this, 90);
     Inventory      = new SlotObjectCollection <Client, Item>(this, 60);
 }
Esempio n. 2
0
 public void RemoveTab(ClientTab clientTab)
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker) delegate()
         {
             clientTab.Dispose();
         });
     }
     else
     {
         clientTab.Dispose();
     }
 }
Esempio n. 3
0
 public void AddTab(ClientTab clientTab)
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker) delegate()
         {
             tabControl1.TabPages.Add(clientTab);
         });
     }
     else
     {
         tabControl1.TabPages.Add(clientTab);
     }
 }