private void button2_Click(object sender, EventArgs e) { var fly = new MsSql(new ConnectionStringModel(_sqlIp, _db, _sqlUser, _sqlPass)); var emo = fly.IsConnection(); fly.ExecSql("select getdate()"); }