Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.CenterToScreen();
            if (accountId == 0)
            {
                this.Close();
            }

            Account account = (new UserDAO()).GetAccountInfo(accountId);

            lbUserName.Text = account.firstName + " " + account.lastName;

            MovieDAO movieDAO = new MovieDAO();

            loadMovies(movieDAO.GetAllMovieList());
            loadGenres(movieDAO.GetGenreStringList());
        }