Beispiel #1
0
        private void buttonClose_Click(object sender, EventArgs e)
        {
            FormSearch close = new FormSearch(sNewTitle, sYear);

            this.Close();

            Form1 Update = new Form1();

            Update.Show();
        }
        private void buttonPretraga_Click(object sender, EventArgs e)
        {
            var        newTitle = textBoxPretraga.Text.ToString();
            var        year     = textBoxGodina.Text.ToString();
            FormSearch newMovie = new FormSearch(newTitle, year);

            newMovie.Show();
            //this.Close();
            this.Hide();
        }
Beispiel #3
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var rating = textBoxYourRating.Text;

            _omdbRepository.AddMovie(omdbNewMovie, rating);

            FormSearch close = new FormSearch(sNewTitle, sYear);

            this.Close();

            Form1 Update = new Form1();

            Update.Show();
        }