Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            CodeValue cv = new CodeValue();

            if (cbxCodeType.SelectedItem == null)
            {
                MessageBox.Show("Select Code Type.");
                return;
            }

            cv.FKCodeType    = cbxCodeType.SelectedItem.ToString();
            cv.ID            = txtCodeValueCode.Text;
            cv.Description   = txtCodeDescription.Text;
            cv.Abbreviation  = txtAbbreviation.Text;
            cv.ValueExtended = txtValueExtended.Text;

            cv.Save();

            MessageBox.Show("Code Type Save Successfully.");

            ResetFields();
        }