Exemple #1
0
 /// <summary>
 /// Constructor. Initializes the form and fill the list of tables that will be available to configure their AllowDataLost property
 /// </summary>
 /// <param name="projectType"></param>
 /// <param name="options"></param>
 public ImportOptionsFrm(AccessProjectType projectType, ImportOptions options)
 {
     InitializeComponent();
     this.projectType                = projectType;
     this.options                    = (ImportOptions)options.Clone();
     overwriteCheckBox.Checked       = options.OverwriteDatabase;
     overwritePromptCheckBox.Checked = options.Prompt;
     deleteNotLoadedCheckBox.Checked = options.DeleteNotLoaded;
     if (projectType == AccessProjectType.Adp)
     {
         allowDataLostCheckBox.Enabled = false;
         tablesList.Enabled            = false;
     }
 }
Exemple #2
0
 /// <summary>
 /// Constructor. Initializes the form and fill the list of tables that will be available to configure their AllowDataLost property
 /// </summary>
 /// <param name="projectType"></param>
 /// <param name="options"></param>
 /// <param name="tableNames"></param>
 public ImportOptionsFrm(AccessProjectType projectType, ImportOptions options, string[] tableNames) : this(projectType, options)
 {
     tablesList.Items.AddRange(tableNames);
 }