static void con_OnExceptionRaised(object sender, ExceptionRaiseEventArgs args) { if (!(sender.GetType() == typeof(Socket))) { Console.WriteLine("exception source : " + args.raisedException.Source); Console.WriteLine("exception raised : " + args.raisedException.Message); Console.WriteLine("exception detail : " + args.raisedException.InnerException); } }
void con_OnExceptionRaised(object sender, ExceptionRaiseEventArgs args) { if (con != null) { con.send(Encoding.Unicode.GetBytes("0GE_" + myName)); } if (lobby_inst != null) { lobby_inst.Show(); } this.Hide(); }
void con_OnExceptionRaised(object sender, ExceptionRaiseEventArgs args) { Application.Exit(); }