public LoginForm() { InitializeComponent(); txtUserName.Focus(); try { SQLiteCommon.InitDB(); } catch (Exception e) { log.Error(e); ShowMsg(MessageBoxIcon.Error, e.Message); } }