public DatabaseSetup() { dbForm = new SqlIte(); InitializeComponent(); this.DataContext = this; txtdbIntro.Text = @"KryGamesBot stores bets made through it and your session stats in a database so that it can show you pretty graphs and keep track of your betting progress. To be able to do this, you need to set up a databasse for it to store to. If you're not sure what to enter here, it's recommended you use the default settings and continue."; }
private void ComboBoxEdit_SelectedIndexChanged(object sender, RoutedEventArgs e) { switch (cbeProvider.SelectedIndex) { case 0: dbForm = new SqlIte(); break; case 1: dbForm = new SqlServer(); break; case 2: dbForm = new DBSetup.MySql(); break; case 3: dbForm = new DBSetup.MongoDB(); break; case 4: dbForm = new PostGres(); break; default: dbForm = new SqlIte(); break; } OnPropertyChanged("dbForm"); }