Type Public class database Database name BSS_2018, BSS_2019...etc Database username a Database password a Database2017 Database2018 Database2019 etc..
string BSS_2018 = Properties.Settings.Default.BSS_2018CS; string BSS_2019 = Properties.Settings.Default.BSS_2019CS; string con;
InitializeComponent(); yearlabel.Text = getYear();
public void PullData() { if (yearlabel.Text == "BSS_2018") { con = BSS_2018; } else if (yearlabel.Text == "BSS_2019") { con = BSS_2019; } }
String mymethod(int year){ string dbName = String.Format("mydb_{0}", year); return dbName;}
string con = Properties.Settings.Default.BSS_2018CS.Replace("2018", "2019");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)