Ejemplo n.º 1
0
        public AggregatorWorker(int userId)
        {
            //makes a new db worker
            dbWorker = new DatabaseWorker();

            this.userID = userId;
            //gets likes and dislikes from database for user
            likes = dbWorker.getLikes(userId);
            dislikes = dbWorker.getDislikes(userId);
        }
Ejemplo n.º 2
0
        public AggregatorWorker(int userId)
        {
            //makes a new db worker
            dbWorker = new DatabaseWorker();

            this.userID = userId;
            //gets likes and dislikes from database for user
            likes    = dbWorker.getLikes(userId);
            dislikes = dbWorker.getDislikes(userId);
        }
Ejemplo n.º 3
0
 //initialises the db worker when the form loads
 private void LoginForm_Load(object sender, EventArgs e)
 {
     dbWorker = new DatabaseWorker();
 }
Ejemplo n.º 4
0
 //initialises the db worker when the form loads
 private void LoginForm_Load(object sender, EventArgs e)
 {
     dbWorker = new DatabaseWorker();
 }