コード例 #1
0
        public InputViewModel(IExtensions extensions)
        {
            if (extensions == null)
            {
                throw new ArgumentNullException(nameof(extensions));
            }

            _extensions = extensions;

            Extensions        = new ExtensionCollection(_extensions.DisplayInputFileExtensions);
            SelectedExtension = Extensions.FirstOrDefault();
        }