Beispiel #1
0
        /// <summary>
        /// Delete client network
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Client_OnDeleteClient(object sender, EventClientArgs e)
        {
            ClientAddress Cl = new ClientAddress(e.ClientId, e.Name);
            int           I  = chClients.Items.Count - 1;

            while ((I >= 0) && (Cl.ToString() != chClients.Items[I].ToString()))
            {
                I--;
            }
            if (I >= 0)
            {
                chClients.Items.RemoveAt(I);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Add new client
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Client_OnNewClient(object sender, EventClientArgs e)
        {
            ClientAddress Cl = new ClientAddress(e.ClientId, e.Name);

            chClients.Items.Add(Cl);
        }
Beispiel #3
0
 void NMClient_OnNewClient(object sender, EventClientArgs e)
 {
     chClients.Items.Add(new ClientAddress(e.ClientId, e.Name));
 }