public NewMarker() { InitializeComponent(); DataContext = this; foreach (Layer l in MainWindow._LayerCollection) { if ((bool)l.IsLayerShown) { DropDownValues.Add(new KeyValuePair <string, string>(l.LayerID.ToString(), l.LayerName)); } } }
public NewPolyline() { InitializeComponent(); polygonposition = MainWindow.currentposition; DataContext = this; foreach (Layer l in MainWindow._LayerCollection) { if ((bool)l.IsLayerShown) { DropDownValues.Add(new KeyValuePair <string, string>(l.LayerID.ToString(), l.LayerName)); } } txtPosition.Text = polygonposition.Lat.ToString() + ", " + polygonposition.Lng.ToString(); txtGEO.Text = MainWindow.GetGEO(polygonposition); cmbLayerList.SelectedIndex = 0; }