Example #1
0
        private void Create_Movie_File()
        {
            try
            {
                MovieClass Movie = new MovieClass();

                Movie.Movie_Name = AddBox.Text;
                Movie.Set_Year(YearBox.Text);
                Movie.Set_Mark(MarkBox.Text);
                if (IMDBBox.Text.IndexOf("http") == -1)
                    IMDBBox.Text = "http://" + IMDBBox.Text;
                Movie.Set_IMDB_Adress(IMDBBox.Text);
                if (TBDBox.Checked == true)
                    Movie.Set_Date("-1", "-1", "-1");
                else if ((NoDBox.Checked == true || DateMonth.Text == "Month" || DateDay.Text == "Day" || DateYear.Text == "Year") && TodayButton.Checked == false)
                    Movie.Set_Date("0", "0", "0");
                else if (TodayButton.Checked == true)
                    Movie.Set_Date(DateTime.Now.Day.ToString(), DateTime.Now.Month.ToString(), DateTime.Now.Year.ToString());
                else
                    Movie.Set_Date(DateDay.Text, DateMonth.Text, DateYear.Text);

                Movie.Update_Informations();
            }
            catch
            {
            }
        }