예제 #1
0
        /// <summary>
        /// Saves changes to the movie instance
        /// </summary>
        public void saveMovie()
        {
            bool isSend = false;

            if (Movie.isValid)
            {
                isSend = Controller.Post(Movie);
            }
            if (isSend)
            {
                MovieInfoView view = new MovieInfoView()
                {
                    DataContext = childViewModel
                };

                childViewModel.Info = "Film o tytule '" + Movie.MovieTitle + "' został zapisany w bazie danych.";
                MovieView.GetInstance().Close();
                view.ShowDialog();
            }
        }