Пример #1
0
        private void SendCableCloudMessage(string message, ClientTableRow clientTableRow)
        {
            var vci        = clientTableRow.Vci;
            var vpi        = clientTableRow.Vpi;
            var portNumber = clientTableRow.PortNumber;

            var cableCloudMessages = Generate(portNumber, vpi, vci, message);

            foreach (var cableCloudMessage in cableCloudMessages)
            {
                Send(cableCloudMessage);
                OnUpdateState("Sent: " + cableCloudMessage.ExtractAtmCells().Count + " ATMCells.");
            }
        }
Пример #2
0
 public ClientTableRowChangeEvent(ClientTableRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #3
0
 private void DeleteClient(ClientTableRow clientTableRow)
 {
     ClientTableList.Remove(clientTableRow);
     ClientTableRowDeleted(clientTableRow.ClientName);
 }
Пример #4
0
 private void AddClient(ClientTableRow clientTableRow)
 {
     ClientTableList.Add(clientTableRow);
     ClientTableRowAdded(clientTableRow.ClientName);
 }