/// <summary> /// 地图选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void maplist_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!maplist.Text.Equals("请选择") && ((ComboBoxItem)maplist.SelectedItem).Tag != null) { MapInstrument.keyValuePairs.Clear(); MapInstrument.valuePairs.Clear(); MapInstrument.wirePointArrays.Clear(); MapInstrument.GetKeyValues.Clear(); Painting.siseWin = 1; SliMax.Value = 0; MapIN.Children.Clear(); string ls = ((ComboBoxItem)maplist.SelectedItem).Tag.ToString(); string[] arr = ls.Split(','); mpWidth = Convert.ToDouble(arr[0]) * manag.Sise; mpHeight = Convert.ToDouble(arr[1]) * manag.Sise; MapIN.Width = mpWidth; MapIN.Height = mpHeight; Times = long.Parse(arr[2]); manag.SelectMap(long.Parse(arr[2]), MapIN, false); TagCompile tag = new TagCompile(); tag.TagManagement(Beacon, arr[2]); } }