Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShaderOptionsPageViewModel"/> class.
        /// </summary>
        /// <param name="shaderExtension">The shader extension.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="shaderExtension"/> is <see langword="null"/>.
        /// </exception>
        public ShaderOptionsPageViewModel(ShaderExtension shaderExtension)
            : base("Shader Editor")
        {
            if (shaderExtension == null)
                throw new ArgumentNullException(nameof(shaderExtension));

            _shaderExtension = shaderExtension;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ShaderOptionsPageViewModel"/> class.
        /// </summary>
        /// <param name="shaderExtension">The shader extension.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="shaderExtension"/> is <see langword="null"/>.
        /// </exception>
        public ShaderOptionsPageViewModel(ShaderExtension shaderExtension)
            : base("Shader Editor")
        {
            if (shaderExtension == null)
            {
                throw new ArgumentNullException(nameof(shaderExtension));
            }

            _shaderExtension = shaderExtension;
        }