Artemis.Profiles.Layers.Types.Audio.AudioType.SetupViewModel C# (CSharp) Method

SetupViewModel() public method

public SetupViewModel ( LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel ) : LayerPropertiesViewModel
layerEditorViewModel Artemis.ViewModels.Profiles.LayerEditorViewModel
layerPropertiesViewModel Artemis.Profiles.Layers.Abstract.LayerPropertiesViewModel
return Artemis.Profiles.Layers.Abstract.LayerPropertiesViewModel
        public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel,
            LayerPropertiesViewModel layerPropertiesViewModel)
        {
            if (layerPropertiesViewModel is AudioPropertiesViewModel)
                return layerPropertiesViewModel;
            return new AudioPropertiesViewModel(layerEditorViewModel);
        }