示例#1
0
        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));
                }
            }
        }
示例#2
0
        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;
        }