Beispiel #1
0
        private void Connect_Click(object sender, EventArgs e)
        {
            this.lstMovies.Items.Clear();

            this.lstMovies.Items.Clear();
            string dbfilename = this.txtDatabase.Text;

            BusinessTier.Business biztier = new BusinessTier.Business(dbfilename);
            string dbfilename2            = this.txtDatabase.Text;

            BusinessTier.Business users = new BusinessTier.Business(dbfilename2);

            foreach (BusinessTier.Movie movies in biztier.GetAllMovies())
            {
                this.lstMovies.Items.Add(string.Format("{0}", movies.MovieName));
            }


            foreach (BusinessTier.Movie movies in biztier.GetAllMovies())
            {
                this.movieBox.Items.Add(string.Format("{0}", movies.MovieName));
            }

            foreach (BusinessTier.User i in users.GetAllNamedUsers())
            {
                this.namebox.Items.Add(string.Format("{0}", i.UserName));
            }



            //  movieBox.SelectedIndex = 0;
            //   namebox.SelectedIndex = 0;
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.lstMovies.Items.Clear();
            string dbfilename = this.txtDatabase.Text;

            BusinessTier.Business biztier = new BusinessTier.Business(dbfilename);

            foreach (BusinessTier.Movie movies in biztier.GetAllMovies())
            {
                this.lstMovies.Items.Add(string.Format("{0}", movies.MovieName));
            }


            foreach (BusinessTier.Movie movies in biztier.GetAllMovies())
            {
                this.lstMovies.Items.Add(string.Format("{0}", movies.MovieName));
            }
        }