Exemplo n.º 1
0
        private void EditDelMovie_Load(object sender, EventArgs e)
        {
            ControllerMovie ctrlMovie = new ControllerMovie();

            ctrlMovie.LoadMoviesToListView(listView1);
            comboBox1.Items.AddRange(ControllerCategory.LoadAllCategories());
        }
Exemplo n.º 2
0
        private void Main_Activated(object sender, EventArgs e)
        {
            listView1.Items.Clear();
            comboBox1.Items.Clear();
            ControllerMovie ctrlMovie = new ControllerMovie();

            ctrlMovie.LoadMoviesToListView(listView1);
            comboBox1.Items.AddRange(ControllerCategory.LoadAllCategories());
        }
Exemplo n.º 3
0
        private void EditMovies_Load(object sender, EventArgs e)
        {
            comboBoxCategory.Items.AddRange(ControllerCategory.LoadAllCategories());
            ControllerMovie ctrlMovie = new ControllerMovie();

            movie = ctrlMovie.GetOneMovie(id);

            textBoxTitle.Text = movie.Title;
            comboBoxCategory.SelectedIndex = Convert.ToInt32(movie.Category) - 1;
            textBoxDirector.Text           = movie.Director;
            textBoxCast.Text         = movie.Cast;
            textBoxCountry.Text      = movie.Country;
            dateTimePickerYear.Value = new DateTime(movie.Year, 1, 1);
            textBoxDescr.Text        = movie.Description;
        }
Exemplo n.º 4
0
 private void AddMovies_Load(object sender, EventArgs e)
 {
     comboBoxCategory.Items.AddRange(ControllerCategory.LoadAllCategories());
 }