private void ResetLayerNameCollections(List <string> layerNames) { Application.Current.Dispatcher.Invoke(() => { LLOS_ObserverLyrNames.Clear(); LLOS_TargetLyrNames.Clear(); RLOS_ObserverLyrNames.Clear(); LLOS_ObserverLyrNames.Add(EnterManullyOption); LLOS_TargetLyrNames.Add(EnterManullyOption); RLOS_ObserverLyrNames.Add(EnterManullyOption); foreach (var name in layerNames) { LLOS_ObserverLyrNames.Add(name); LLOS_TargetLyrNames.Add(name); RLOS_ObserverLyrNames.Add(name); } }); }
private void ResetLayerCollectionNames(ObservableCollection <string> layerNames) { LLOS_ObserverLyrNames.Clear(); LLOS_TargetLyrNames.Clear(); RLOS_ObserverLyrNames.Clear(); if (!LLOS_ObserverLyrNames.Contains(EnterManullyOption)) { LLOS_ObserverLyrNames.Add(EnterManullyOption); LLOS_TargetLyrNames.Add(EnterManullyOption); RLOS_ObserverLyrNames.Add(EnterManullyOption); } foreach (var layerName in layerNames) { if (!LLOS_ObserverLyrNames.Contains(layerName)) { LLOS_ObserverLyrNames.Add(layerName); LLOS_TargetLyrNames.Add(layerName); RLOS_ObserverLyrNames.Add(layerName); } } }