private void InitializeNetworkTree(Network network) { network.Initialize(); m_root = new NetworkElementViewModel(this, new NetworkElement(network)); m_firstGeneration = new ObservableCollection <NetworkElementViewModel>(new NetworkElementViewModel[] { m_root }); OnPropertyChanged("FirstGeneration"); }
public NetworkElementViewModel(NetworkElement networkElement, NetworkElementViewModel parent) { m_networkTree = parent.NetworkTree; m_parent = parent; m_networkElement = networkElement; }
public NetworkElementViewModel(NetworkTreeViewModel networkTree, NetworkElement networkElement) { m_networkTree = networkTree; m_networkElement = networkElement; m_parent = null; }