Exemple #1
0
        private void btnSearchDirector_Click(object sender, EventArgs e)
        {
            MovieInfoSearch m = new MovieInfoSearch(2);

            m.ShowDialog();
            if (!m.isClose())
            {
                this.txtDirector.Text = m.getName();
            }
        }
Exemple #2
0
        private void btnSearchActor1_Click(object sender, EventArgs e)
        {
            MovieInfoSearch m = new MovieInfoSearch(3);

            m.ShowDialog();
            if (!m.isClose())
            {
                for (int i = 0; i < listBoxActor.Items.Count; i++)
                {
                    if (m.getName().Equals(listBoxActor.Items[i].ToString()))
                    {
                        MessageBox.Show("Actor exists!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return;
                    }
                }
                listBoxActor.Items.Add(m.getName());
            }
        }