Ejemplo n.º 1
0
        private void buttonClose_Click(object sender, EventArgs e)
        {
            FormSearch close = new FormSearch(sNewTitle, sYear);

            this.Close();

            Form1 Update = new Form1();

            Update.Show();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 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();
        }