예제 #1
0
        public override void Execute()
        {
            base.Execute();

            if (PromptForProject)
            {
                if (SelectOne(Activator.RepositoryLocator.DataExportRepository, out Project p))
                {
                    _project = p;
                }
                else
                {
                    return; //dialogue was cancelled
                }
            }
            var importTable = new ImportSQLTableUI(Activator, true)
            {
                TargetFolder = TargetFolder
            };

            if (_project != null)
            {
                importTable.SetProjectSpecific(_project);
            }

            importTable.ShowDialog();
        }
예제 #2
0
        public override void Execute()
        {
            base.Execute();

            var importTable = new ImportSQLTableUI(Activator, false);

            importTable.ShowDialog();
        }
예제 #3
0
        public override void Execute()
        {
            base.Execute();

            var importTable = new ImportSQLTableUI(Activator, _allowImportAsCatalogue);

            importTable.ShowDialog();
        }
예제 #4
0
        private void btnImportNewTableInfo_Click(object sender, EventArgs e)
        {
            var importDialog = new ImportSQLTableUI(Activator, false);

            if (importDialog.ShowDialog() == DialogResult.OK)
            {
                if (importDialog.TableInfoCreatedIfAny != null)
                {
                    cbxLookup.SelectedItem = importDialog.TableInfoCreatedIfAny;
                }
            }
        }