private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                AddUpdate update = new AddUpdate();
                update.addUpdateUnitMeasure(
                    txtUnitMeasure.Text,
                    this.idToUpdate,
                    1
                    ); // UPDATE

                txtUnitMeasure.Clear();
                MessageBox.Show("DATA UDPATED");
                this.idToUpdate = 0;

                Get get = new Get();
                dgvUnitMeasures.DataSource = null;
                dgvUnitMeasures.DataSource = get.getAllUnitMeasureDetails();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                AddUpdate add = new AddUpdate();
                add.addUpdateUnitMeasure(
                    txtUnitMeasure.Text,
                    0,
                    0
                    );  // ADD

                txtUnitMeasure.Clear();
                this.idToUpdate = 0;
                MessageBox.Show("DATA ADDED");

                Get get = new Get();
                dgvUnitMeasures.DataSource = null;
                dgvUnitMeasures.DataSource = get.getAllUnitMeasureDetails();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }