Exemple #1
0
        public Login()
        {
            InitializeComponent();

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

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