Exemplo n.º 1
0
        /// <summary>
        /// editProductForm() creates a form that allows the user to edit an existing product. It can be
        /// from other forms.
        /// Future functionality would implement checks to ensure there is only one form allowed at a time.
        /// </summary>
        internal void editProductForm()
        {
            EditProductForm form = new EditProductForm(this);

            form.MdiParent = this;
            form.Show();
        }
Exemplo n.º 2
0
        /// <summary>
        /// editProductForm() is an overloaded method that creates a form that allows the user to edit an
        /// existing product. It receives an integer that corresponds to the index of an item selected in a
        /// datagrid. It can be called from other forms.
        /// Future functionality would implement checks to ensure there is only one form allowed at a time.
        internal void editProductForm(int rowIndex)
        {
            EditProductForm form = new EditProductForm(rowIndex, this);

            form.MdiParent = this;
            form.Show();
        }