private void btnFilmGuncelle_Click(object sender, EventArgs e)
        {
            //guncelleme islemi icin  lstv den secilen film classına ait olan elemanı movieadd formuna gönderdim
            Film         choosing = (Film)lstvFilmler.FocusedItem.Tag;
            FormMovieAdd frm      = new FormMovieAdd(choosing);

            frm.ShowDialog();
        }
Example #2
0
        private void filmEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool check = false;

            foreach (Form item in Application.OpenForms)
            {
                if (item.Name == "FormMovieAdd")
                {
                    check = true;
                    item.Focus();
                }
            }
            if (check == false)
            {
                FormMovieAdd frm = new FormMovieAdd();
                frm.MdiParent = this;
                frm.Show();
            }
        }