Exemplo n.º 1
0
 private void NetCoreEventHandler(object sender, NetCoreError e)
 {
     this.Dispatcher.Invoke((Action)(() => {
         MessageBox.Show(e.error, "Hiba!", MessageBoxButton.OK);
         if (_lfnet.hasConnection()) {
             _lfnet.disconnect();
         }
         btnProfile.IsEnabled = btnCreateGame.IsEnabled = btnConnect.IsEnabled = true;
         btnDisconnect.IsEnabled = false;
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Elküldi a hibaüzenetet egy eventben
 /// </summary>
 /// <param name="e">Hibaüzenet</param>
 private void dispatchErrorEvent(NetCoreError e)
 {
     if (NetError != null) {
         NetError(this, e);
     }
 }