Esempio n. 1
0
        /// <inheritdoc/>
        public bool Equals(ConflictData other)
        {
            if (AppEntry == null || other.AppEntry == null || AccessPoint == null)
            {
                return(false);
            }

            return
                (AccessPoint.Equals(other.AccessPoint) &&
                 AppEntry.InterfaceUri == other.AppEntry.InterfaceUri);
        }
Esempio n. 2
0
 public void RemoveNearbyAP(AccessPoint ap)
 {
     // TODO:
     for (int i = 0; i < nearbyAPList.Items.Count; i++)
     {
         AccessPoint itemAP = nearbyAPList.Items[i].Tag as AccessPoint;
         if ((itemAP != null) && (itemAP.Equals(ap)))
         {
             nearbyAPList.Items.RemoveAt(i);
         }
     }
 }
Esempio n. 3
0
        public void OnAPInfoChange(AccessPoint ap)
        {
            // find the AP in the list
            bool found = false;

            foreach (ListItem item in nearbyAPList.Items)
            {
                if (ap.Equals(item.Tag as AccessPoint))
                {
                    item.Tag = ap;
                    found    = true;
                    break;
                }
            }

            // if it's not it the list, it should be
            if (!found)
            {
                AddNearbyAP(ap);
            }

            nearbyAPList.Refresh();
        }