private void EditDelMovie_Load(object sender, EventArgs e) { ControllerMovie ctrlMovie = new ControllerMovie(); ctrlMovie.LoadMoviesToListView(listView1); comboBox1.Items.AddRange(ControllerCategory.LoadAllCategories()); }
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()); }
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; }
private void AddMovies_Load(object sender, EventArgs e) { comboBoxCategory.Items.AddRange(ControllerCategory.LoadAllCategories()); }