private void BtnSave_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtName.Text))
            {
                frmMessageBoxFillNull frm = new frmMessageBoxFillNull();
                frm.ShowDialog();
            }
            else
            {
                if (flag == true)
                {
                    frmMessageBoxSave frm = new frmMessageBoxSave();
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        String name = txtName.Text;
                        AlmacenDisecWS.category c = new AlmacenDisecWS.category();
                        c.category_name = name;
                        serviceDA.insertCategory(c);
                        dgvSearch.AutoGenerateColumns = false;
                        dgvSearch.DataSource          = serviceDA.queryAllCategory();
                        reiniciar();
                        btnModify.Enabled = true;
                        operation         = true;
                    }
                }
                else
                {
                    if (String.IsNullOrEmpty(txtId.Text))
                    {
                        frmMessageBoxFillNull frm2 = new frmMessageBoxFillNull();
                        frm2.ShowDialog();
                    }
                    else
                    {
                        frmMessageBoxSave frm = new frmMessageBoxSave();
                        if (frm.ShowDialog() == DialogResult.OK)
                        {
                            int    id   = Int32.Parse(txtId.Text);
                            String name = txtName.Text;
                            AlmacenDisecWS.category c = new AlmacenDisecWS.category();
                            c.category_name = name;
                            c.category_id   = id;
                            serviceDA.updateCategory(c);

                            dgvSearch.AutoGenerateColumns = false;

                            dgvSearch.DataSource = serviceDA.queryAllCategory();
                            reiniciar();
                            operation         = true;
                            btnModify.Enabled = true;
                        }
                    }
                }
            }
        }