private void BtnSave_Click(object sender, EventArgs e) { attribute = new MODEL.Entities.Attribute(); attribute.AttributeName = txtAttributeName.Text; attribute.Description = txtAttributeDescription.Text; attributeRepository.Add(attribute); ClearTextBoxes(); }
private void LstAttributes_Click(object sender, EventArgs e) { if (lstAttributes.SelectedIndex > -1) { attribute = lstAttributes.SelectedItem as MODEL.Entities.Attribute; txtAttributeName.Text = attribute.AttributeName; txtAttributeDescription.Text = attribute.Description; } }