Exemple #1
0
        private void InitInputFileFormatComboBox()
        {
            _inputFileFormatComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            _inputFileFormatComboBox.DropDownWidth = 400;
            List <GdalRasterFileFormat> fileFormats = GdalConfigManager.GetGdalRasterFileFormats();

            _inputFileFormatComboBox.DataSource    = fileFormats;
            _inputFileFormatComboBox.DisplayMember = "LongName";
            _inputFileFormatComboBox.ValueMember   = "Extensions";

            var result = fileFormats.Find(x => x.Extensions.Contains("ecw"));

            if (result == null)
            {
                return;
            }

            _inputFileFormatComboBox.SelectedItem = result;
        }
Exemple #2
0
        private void InitInputFileFormatComboBox()
        {
            _inputFileFormatComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            _inputFileFormatComboBox.DropDownWidth = 400;
            List <GdalRasterFileFormat> fileFormats = GdalConfigManager.GetGdalRasterFileFormats();

            var fileFormat = new GdalRasterFileFormat("모든 파일", "*");

            fileFormats.Insert(0, fileFormat);

            _inputFileFormatComboBox.DataSource    = fileFormats;
            _inputFileFormatComboBox.DisplayMember = "LongName";
            _inputFileFormatComboBox.ValueMember   = "Extensions";

            //var result = fileFormats.Find(x => x.Extensions.Contains("tif"));

            //if (result == null)
            //{
            //    return;
            //}

            //_inputFileFormatComboBox.SelectedItem = result;
        }