public static DialogResult CreateInsertDialog()
        {
            var form = new ProductDetailsForm();
            form.isForUpdate = false;

            return form.ShowDialog();
        }
        public static DialogResult CreateUpdateDialog(DataRow selectedRow)
        {
            var form = new ProductDetailsForm();
            form.isForUpdate = true;
            form.GetInfo(selectedRow);

            return form.ShowDialog();
        }
        public static DialogResult CreateInsertDialog()
        {
            var form = new ProductDetailsForm();

            form.isForUpdate = false;

            return(form.ShowDialog());
        }
        public static DialogResult CreateUpdateDialog(DataRow selectedRow)
        {
            var form = new ProductDetailsForm();

            form.isForUpdate = true;
            form.GetInfo(selectedRow);

            return(form.ShowDialog());
        }