Exemple #1
0
        /// <summary>
        /// Removes a network from NavigationObject due to Delete Network
        /// </summary>
        /// <param name="networkObject"></param>
        public void RemoveNetwork(NetworkObject networkObject)
        {
            NetworkNavigationObject networkNavigationObject = m_listNetworks.Find(delegate(NetworkNavigationObject nno) { return(nno.NetworkID == networkObject.NetworkID); });

            if (networkNavigationObject != null)
            {
                m_listNetworks.Remove(networkNavigationObject);
            }
        }
Exemple #2
0
 /// <summary>
 /// Creates NavigationObject for all included networks (USE TRY/CATCH)
 /// </summary>
 /// <param name="listNetworks"></param>
 public NavigationObject(List <NetworkObject> listNetworks)
 {
     m_listViews = GlobalDatabaseOperations.GetViews();
     foreach (NetworkObject no in listNetworks)
     {
         NetworkNavigationObject nno = new NetworkNavigationObject(no.NetworkID);
         m_listNetworks.Add(nno);
     }
 }
Exemple #3
0
        /// <summary>
        /// Adds a new Network to the navigation object
        /// </summary>
        /// <param name="networkObject"></param>
        public void AddNewNetwork(NetworkObject networkObject)
        {
            NetworkNavigationObject nno = new NetworkNavigationObject(networkObject.NetworkID);

            m_listNetworks.Add(nno);
        }