Example #1
0
 private void PopulateFields(LessonsDefaultEntity entity)
 {
     this.txtNameLesson.Text = entity.NameLessonDefault;
     this.cbTypeLesson.SelectedIndex = this.cbTypeLesson.FindString(entity.Type);
     this.lblIdLesson.Text = entity.Id.ToString();
 }
Example #2
0
 public FrmNewLesson(LessonsDefaultEntity entity)
 {
     InitializeComponent();
     PopulateFields(entity);
 }