示例#1
0
 public static void BroadcastConnectEvent(object sender, ConnectEventArgs args)
 {
     if (mConnectEventHandler != null)
     {
         mConnectEventHandler(sender, args);
     }
 }
示例#2
0
 public void OnConnectEvent(object sender, ConnectEventArgs args)
 {
     if (ConnectEvent != null)
     {
         ConnectEvent(sender, args);
     }
 }
示例#3
0
文件: Program.cs 项目: viticm/pap2
 static void OnConnect(object sender, ConnectEventArgs args)
 {
     Console.Title = (sender as NetClient).ClientKey + " " + mTitle;
     mTitle += ". ";
     if (mTitle.Length > 10)
     {
         mTitle = string.Empty;
     }
 }
示例#4
0
 public void OnConnectEvent(object sender, ConnectEventArgs args)
 {
     if (mConnectEventHandler != null)
     {
         try
         {
             mConnectEventHandler(sender, args);
         }
         catch
         {
             RemotingSystem.Instance.DisconnectServer(mClientKey);
         }
     }
 }
示例#5
0
 private static void OnConnect(object sender, ConnectEventArgs args)
 {
     
 }