Ejemplo n.º 1
0
        private void buttonInsertMeasurementUnit_Click(object sender, EventArgs e)
        {
            MeasurementUnit newMeasurementUnit = new MeasurementUnit();

            newMeasurementUnit.Name = txtInsertMeasurementUnit.Text;
            if (newMeasurementUnit.InsertMeasurementUnit())
            {
                MessageBox.Show("Measurement Unit insert sucessfully");
                LoadComboBox();
            }
            else
            {
                MessageBox.Show("An error occurred, measurement unit was not inserted");
            }
        }