Artemis.Profiles.Layers.Types.Generic.GenericPropertiesViewModel.GenericPropertiesViewModel C# (CSharp) Method

GenericPropertiesViewModel() public method

public GenericPropertiesViewModel ( LayerEditorViewModel editorVm ) : System.Collections.Generic
editorVm Artemis.ViewModels.Profiles.LayerEditorViewModel
return System.Collections.Generic
        public GenericPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm)
        {
            LayerAnimations = new BindableCollection<ILayerAnimation>(editorVm.LayerAnimations);
            OpacityProperties = new LayerDynamicPropertiesViewModel("Opacity", editorVm);

            SelectedLayerAnimation =
                LayerAnimations.FirstOrDefault(l => l.Name == editorVm.ProposedLayer.LayerAnimation?.Name) ??
                LayerAnimations.First(l => l.Name == "None");
        }