private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { db = new StatDataEntities("name=" + comboBox1.Text + "StatDataEntities"); StartupForm_Load(this, e); }
public frm_Users(string connection) { InitializeComponent(); db = new StatDataEntities("name=" + connection + "StatDataEntities"); Users = db.Synapse_Security_User.ToList(); }