private void btnOpenConnect_Click(object sender, EventArgs e) { DBConnect connect = new DBConnect(); connect.OpenConnection(); }
public Form1() { InitializeComponent(); DBConnect connect = new DBConnect(); }