Пример #1
0
 static void client_OnConnected(object sender, NetConnectedEventArgs e)
 {
     try
     {
         if (Functions[FunctionType.Connected] != null)
         {
             Functions[FunctionType.Connected].Call();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Пример #2
0
 void client_OnConnected(object sender, NetConnectedEventArgs e)
 {
     messages.Append(@"\viewkind4\uc1\pard\f0\fs16\fs20\cf2Vous êtes connecté\par");
     DisplayMessage(messages.ToString());
     serialPort.Open();
 }
Пример #3
0
 private static void Client_OnConnected(object sender, NetConnectedEventArgs e)
 {
     Console.WriteLine("------- Connected!");
 }
Пример #4
0
 private void CNetwork_OnConnected(object sender, NetConnectedEventArgs e)
 {
     Console.WriteLine(e.ToString());
 }
Пример #5
0
        static readonly NetObjectClient client = new NetObjectClient(); // Add the client object

        #endregion Fields

        #region Methods

        static void client_OnConnected(object sender, NetConnectedEventArgs e)
        {
            Console.WriteLine("Client Connected!");
        }