Beispiel #1
0
 private void LstTypes_Click(object sender, EventArgs e)
 {
     if (lstTypes.SelectedIndex > -1)
     {
         type = lstTypes.SelectedItem as MODEL.Entities.Type;
     }
 }
Beispiel #2
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     type             = new MODEL.Entities.Type();
     type.TypeName    = txtTypeName.Text;
     type.Description = txtTypeDescription.Text;
     typeRepository.Add(type);
     ClearTextBoxes();
 }
Beispiel #3
0
 private void Lsttypes_Click(object sender, EventArgs e)
 {
     if (lstTypes.SelectedIndex > -1)
     {
         type                    = lstTypes.SelectedItem as MODEL.Entities.Type;
         txtTypeName.Text        = type.TypeName;
         txtTypeDescription.Text = type.Description;
     }
 }