예제 #1
0
        private void OnAdd(object sender, EventArgs e)
        {
            var button = sender as ToolStripMenuItem;

            var form = new FilmDetails("Add Product");
            //form.Text = "Add Product";
            //Show the form modally
            var result = form.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }
        }
예제 #2
0
        private void OnEdit(object sender, EventArgs e)
        {
            if (movie == null)
            {
                return;
            }
            var form = new FilmDetails(movie);
            //form.Text = "Edit Product";
            //form.Product = _product;

            //Show the form modally
            var result = form.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }
        }