To manage database connections, Jenga.NET uses kimtoo Toolkit DbManager.
It comes with its inbuilt database connection manager with supports multiple databases mentioned
Kimtoo.DbManager.Connections.Show();
public FrmMain()
{
//check database connection
Connection:
try
{
var db = Kt.Db;
}
catch (Exception ex)
{
if (MessageBox.Show(ex.Message, "AppName", MessageBoxButtons.RetryCancel) == DialogResult.Cancel)
Environment.Exit(0);
Kimtoo.DbManager.Connections.Show();
goto Connection;
}
InitializeComponent();
}
private void btnConnection_Click(object sender, EventArgs e)
{
Kimtoo.DbManager.Connections.Show();
}