Exemplo n.º 1
0
        private void LoadSingleAP(AccessPoint ap)
        {
            AccessPoint old = APs.FirstOrDefault(x => x.Id == ap.Id);

            if (old == null)
            {
                APs.Add(ap);
                ap.Start();
            }
            else
            {
                old.UpdateInfo(ap.Description, ap.Ip, ap.SshPort, ap.SshUser, ap.SshPassword, ap.Alarm, ap.Service);
            }
        }