示例#1
0
        public Login()
        {
            InitializeComponent();

            //null will be SqliteDatabaseConnection when the database is used.
            var crud = new SqliteUserCrud(null);
            handler = new LoginHandler(crud);
        }
示例#2
0
        public Login()
        {
            InitializeComponent();

            var connection = SqliteDatabaseConnection.GetInstance(PostgaardenGui.Properties.Settings.Default.Postgaarden);
            var crud = new SqliteUserCrud(connection);
            handler = new LoginHandler(crud);
        }