示例#1
0
        private void EditDelMovie_Load(object sender, EventArgs e)
        {
            ControllerMovie ctrlMovie = new ControllerMovie();

            ctrlMovie.LoadMoviesToListView(listView1);
            comboBox1.Items.AddRange(ControllerCategory.LoadAllCategories());
        }
示例#2
0
文件: Main.cs 项目: hoseto1/fmiedd
        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());
        }
示例#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;
        }
示例#4
0
 private void AddMovies_Load(object sender, EventArgs e)
 {
     comboBoxCategory.Items.AddRange(ControllerCategory.LoadAllCategories());
 }