private async void exportButton_Click(object sender, EventArgs e)
        {
            progressBar.Value = 0;

            if (exportTypeComboBox.SelectedItem == null)
            {
                MessageBox.Show("Please select the type of export to perform");
            }

            IModelExporter exporter   = null;
            var            exportType = (ExportType)exportTypeComboBox.SelectedItem;

            if (exportType == ExportType.Word)
            {
                saveFileDialog.Title            = "Export Model to Word";
                saveFileDialog.DefaultExt       = "docx";
                saveFileDialog.Filter           = "Docx files (*.docx)|*.doc|All files (*.*)|*.*";
                saveFileDialog.FilterIndex      = 2;
                saveFileDialog.OverwritePrompt  = true;
                saveFileDialog.RestoreDirectory = true;

                exporter = _serviceProvider.GetRequiredService <WordExporter>();
            }

            var dr = saveFileDialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                var path = saveFileDialog.FileName;
                exporter.ExportPath  = path;
                exporter.Model       = _model;
                exporter.ProgressBar = progressBar;
                await exporter.Export().ConfigureAwait(false);

                MessageBox.Show("Export Complete");
            }
        }