Exemple #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);
     }
 }
 void client_OnConnected(object sender, NetConnectedEventArgs e)
 {
     messages.Append(@"\viewkind4\uc1\pard\f0\fs16\fs20\cf2Vous êtes connecté\par");
     DisplayMessage(messages.ToString());
     serialPort.Open();
 }
Exemple #3
0
 private static void Client_OnConnected(object sender, NetConnectedEventArgs e)
 {
     Console.WriteLine("------- Connected!");
 }
Exemple #4
0
 private void CNetwork_OnConnected(object sender, NetConnectedEventArgs e)
 {
     Console.WriteLine(e.ToString());
 }
        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!");
        }