private static void OutputFile(OutputFileMapDTO target)
        {
            var generateFile   = new GenerateFileFactory().Create(target.FileType);
            var targetFileType = generateFile.Generate();

            MessageBox.Show(targetFileType);
        }
        public Form1()
        {
            InitializeComponent();

            var outputFileBtnMap = new OutputFileMapDTO[]
            {
                new OutputFileMapDTO {
                    Button = btnTxt, FileType = FileType.Txt
                },
                new OutputFileMapDTO {
                    Button = btnCsv, FileType = FileType.Csv
                },
                new OutputFileMapDTO {
                    Button = btnXml, FileType = FileType.Xml
                },
                new OutputFileMapDTO {
                    Button = btnJson, FileType = FileType.Json
                },
            };

            cbxOutputFiles.DisplayMember = nameof(OutputFileMapDTO.FileType);

            foreach (var outputFileMapDto in outputFileBtnMap)
            {
                outputFileMapDto.Button.Tag = outputFileMapDto;
                cbxOutputFiles.Items.Add(outputFileMapDto);
            }
        }