void rbAttribute_Click(object sender, EventArgs e) { CurrentAreaSelectMode = AreaSelectMode.SelectAttribute; DeactivateDrawBox(); DeactivateSelectAreaByPolygon(); AreaHelper.SelectFirstVisiblePolygonLayer((Map)App.Map, false); SelectAreaByAttributeDialog.ShowDialog((Map)App.Map); Map_SelectionChanged(this, EventArgs.Empty); }
void rbSelect_Click(object sender, EventArgs e) { CurrentAreaSelectMode = AreaSelectMode.SelectPolygons; DeactivateDrawBox(); App.Map.FunctionMode = FunctionMode.Select; var isWorldTemplate = App.SerializationManager.GetCustomSetting("world_template", "false"); AreaHelper.SelectFirstVisiblePolygonLayer((Map)App.Map, Convert.ToBoolean(isWorldTemplate)); //App.Map.MapFrame.IsSelected = true; }