0
|
1 using System;
|
|
2
|
|
3 using BLToolkit.Demo.ObjectModel;
|
|
4
|
|
5 namespace BLToolkit.Demo.Forms
|
|
6 {
|
|
7 public partial class EditPersonForm : EditPersonFormBase
|
|
8 {
|
|
9 public EditPersonForm()
|
|
10 {
|
|
11 InitializeComponent();
|
|
12 }
|
|
13
|
|
14 protected override void SetBizEntity(Person person)
|
|
15 {
|
|
16 personBinder.Object = person;
|
|
17 }
|
|
18 }
|
|
19
|
|
20 // This additional inheritance is required to avoid a WinForms bug,
|
|
21 // which does not allow using generic classes as base classes for forms and uer controls.
|
|
22 //
|
|
23 public class EditPersonFormBase : BizEntityForm<EditPersonForm, Person> {}
|
|
24 }
|