コード例 #1
0
        private void Test_btn_Click(object sender, RoutedEventArgs e)
        {
            FilmInfo info = new FilmInfo {
                Title = this.FilmTitle, Date = this.Date, Genre = this.Genre, Duration = this.Duration
            };

            wwf.AddNewFilm(info);
            this.Close();
        }
コード例 #2
0
 /// <summary>
 /// Добавление нового фильма
 /// </summary>
 /// <param name="title"></param>
 /// <param name="date"></param>
 /// <param name="genre"></param>
 /// <param name="duration"></param>
 public void AddNewFilm(FilmInfo film)
 {
     film_lst.Add(film);
 }