private void FrmLogin_Load(object sender, EventArgs e) { Ultilities.SetupDataLocation(); if (!Ultilities.IsDatabaseConnected()) { using (var form = new FrmDbConfiguration()) { var result = form.ShowDialog(); } } }