Example #1
0
 private void NetClientEventHandler(object sender, NetClientEvent e)
 {
     this.Dispatcher.Invoke((Action)(() => {
         if (e.ev == ClientEventType.disconnected)
         {
             MessageBox.Show("Kapcsolat megszakadt.");
             btnProfile.IsEnabled = btnCreateGame.IsEnabled = btnConnect.IsEnabled = true;
             btnDisconnect.IsEnabled = false;
             _lfnet.disconnect();
         }
     }));
 }
Example #2
0
 private void NetClientEventHandler(object o, NetClientEvent e)
 {
     if (e.ev == ClientEventType.disconnected)
     {
         gameWindow.opDisconnect();
     }
 }
Example #3
0
 /// <summary>
 /// Elküldi a kliens eseményt egy eventben
 /// </summary>
 /// <param name="e">Kliens esemény</param>
 private void dispatchClientEvent(NetClientEvent e)
 {
     if (NetClientEvent != null) {
         NetClientEvent(this, e);
     }
 }