public LayerModel AddLayer() { if (SelectedProfile == null) { return(null); } var layer = SelectedProfile.AddLayer(SelectedLayer); UpdateLayerList(layer); return(layer); }