상속: ExportBaseOptionsForm
예제 #1
0
        /// <summary>
        /// Provide the export option dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOptions_Click(object sender, EventArgs e)
        {
            // Export dwg
            if (m_exportData.ExportFormat == ExportFormat.DWG)
            {
                bool contain3DView = false;

                if (radioButtonCurrentView.Checked)
                {
                    if (m_exportData.Is3DView)
                    {
                        contain3DView = true;
                    }
                }
                else
                {
                    if (m_exportData.SelectViewsData.Contain3DView)
                    {
                        contain3DView = true;
                    }
                }

                ExportDWGData exportDWGData = m_exportData as ExportDWGData;
                using (ExportDWGOptionsForm exportOptionsForm = new ExportDWGOptionsForm(exportDWGData.ExportOptionsData,
                                                                                         contain3DView))
                {
                    exportOptionsForm.ShowDialog();
                }
            }
            //Export dxf
            else if (m_exportData.ExportFormat == ExportFormat.DXF)
            {
                bool contain3DView = false;

                if (radioButtonCurrentView.Checked)
                {
                    if (m_exportData.Is3DView)
                    {
                        contain3DView = true;
                    }
                }
                else
                {
                    if (m_exportData.SelectViewsData.Contain3DView)
                    {
                        contain3DView = true;
                    }
                }

                ExportDXFData exportDXFData = m_exportData as ExportDXFData;

                using (ExportDXFOptionsForm exportOptionsForm = new ExportDXFOptionsForm(exportDXFData.ExportOptionsData,
                                                                                         contain3DView))
                {
                    exportOptionsForm.ShowDialog();
                }
            }
            // Export dgn
            else if (m_exportData.ExportFormat == ExportFormat.DGN)
            {
                ExportDGNData exportDGNData = m_exportData as ExportDGNData;
                using (ExportDGNOptionsForm exportOptionsForm = new ExportDGNOptionsForm(exportDGNData))
                {
                    exportOptionsForm.ShowDialog();
                }
            }

            // Export DWF
            else
            {
                ExportDWFData exportDWFData = m_exportData as ExportDWFData;
                using (ExportDWFOptionForm exportOptionsForm = new ExportDWFOptionForm(exportDWFData))
                {
                    exportOptionsForm.ShowDialog();
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Provide the export option dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOptions_Click(object sender, EventArgs e)
        {
            // Export dwg
            if (m_exportData.ExportFormat == ExportFormat.DWG)
            {
                bool contain3DView = false;

                if (radioButtonCurrentView.Checked)
                {
                    if (m_exportData.Is3DView)
                    {
                        contain3DView = true;
                    }
                }
                else
                {
                    if (m_exportData.SelectViewsData.Contain3DView)
                    {
                        contain3DView = true;
                    }
                }

                ExportDWGData exportDWGData = m_exportData as ExportDWGData;
                using (ExportDWGOptionsForm exportOptionsForm = new ExportDWGOptionsForm(exportDWGData.ExportOptionsData,
                    contain3DView))
                {
                    exportOptionsForm.ShowDialog();
                }
            }
            //Export dxf
            else if (m_exportData.ExportFormat == ExportFormat.DXF)
            {
                bool contain3DView = false;

                if (radioButtonCurrentView.Checked)
                {
                    if (m_exportData.Is3DView)
                    {
                        contain3DView = true;
                    }
                }
                else
                {
                    if (m_exportData.SelectViewsData.Contain3DView)
                    {
                        contain3DView = true;
                    }
                }

                ExportDXFData exportDXFData = m_exportData as ExportDXFData;

                using (ExportDXFOptionsForm exportOptionsForm = new ExportDXFOptionsForm(exportDXFData.ExportOptionsData,
                    contain3DView))
                {
                    exportOptionsForm.ShowDialog();
                }

            }
            // Export dgn
            else if (m_exportData.ExportFormat == ExportFormat.DGN)
            {
                ExportDGNData exportDGNData = m_exportData as ExportDGNData;
                using (ExportDGNOptionsForm exportOptionsForm = new ExportDGNOptionsForm(exportDGNData))
                {
                    exportOptionsForm.ShowDialog();
                }
            }

            // Export DWF
            else
            {
                ExportDWFData exportDWFData = m_exportData as ExportDWFData;
                using (ExportDWFOptionForm exportOptionsForm = new ExportDWFOptionForm(exportDWFData))
                {
                    exportOptionsForm.ShowDialog();
                }
            }
        }