//构造函数
 public MemberTypeForm(MemberType element)
 {
     db = new BathDBDataContext(LogIn.connectionString);
     if (element != null)
     {
         newElement = false;
         m_Element = db.MemberType.FirstOrDefault(x => x.id == element.id);
     }
     InitializeComponent();
 }
 partial void UpdateMemberType(MemberType instance);
 partial void DeleteMemberType(MemberType instance);
 partial void InsertMemberType(MemberType instance);