Import() public méthode

Collect the parameters and export
public Import ( ) : bool
Résultat bool
        /// <summary>
        /// Transfer information back to ImportData class and execute IMPORT operation
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOpen_Click(object sender, EventArgs e)
        {
            if (ValidateFileName())
            {
                //Color Mode
                SetImportColorMode();
                //Placement
                SetImportPlacement();
                //Current view only, Orient to view, view to import into
                SetImportViewsRelated();
                //Visible layers only
                SetImportLayers();
                //Unit, scaling
                SetImportUnitsAndScaling();

                //Import
                try
                {
                    if (!m_importData.Import())
                    {
                        MessageBox.Show("Cannot import " + Path.GetFileName(m_importData.ImportFileFullName) +
                                        " in current settings.", "Import", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString(), "Import Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }