Beispiel #1
0
 public AddDBModelWizard(string DBMFolder)
 {
     this.DBMFolder      = DBMFolder;
     mApplicationDBModel = new ApplicationDBModel();
     mApplicationDBModel.ContainingFolder = DBMFolder;
     AddPage(Name: "Add DB Model", Title: "Select DB", SubTitle: "Choose ...", Page: new AddDBModelIntroWizardPage());
     AddPage(Name: "Learn DB", Title: "Learn DB", SubTitle: "Choose ...", Page: new ScanDBPage(mApplicationDBModel));
     AddPage(Name: "Save", Title: "Save", SubTitle: "Choose ...", Page: new SaveDBModelPageWizardPage(mApplicationDBModel));
 }
Beispiel #2
0
        public ScanDBPage(ApplicationDBModel ApplicationDBModel)
        {
            InitializeComponent();

            mApplicationDBModel = ApplicationDBModel;

            NameTextBox.BindControl(mApplicationDBModel, nameof(ApplicationDBModel.Name));

            TableInfoGrid.ItemsSource = mApplicationDBModel.Tables;

            //TODO: TEMP - keep in AppDB RI or take from env

            // TODO: remove hard code conn string
            ConnectionStringTextBox.Text = (@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\yaron\Ginger\POM\POM\Documents\Customers.accdb");

            mApplicationDBModel.Name = "splcustm";
        }
        public SaveDBModelPageWizardPage(ApplicationDBModel ApplicationDBModel)
        {
            InitializeComponent();

            mApplicationDBModel = ApplicationDBModel;
        }