예제 #1
0
파일: frmReg.cs 프로젝트: huynhhuy600/ck
 public frmReg(taikhoan obj)
 {
     InitializeComponent();
     db = new DbEntities();
     if (obj == null)
     {
         TKbindingSource.DataSource = new taikhoan();
         db.taikhoans.Add(TKbindingSource.Current as taikhoan);
     }
     else
     {
         TKbindingSource.DataSource = obj;
         db.taikhoans.Attach(TKbindingSource.Current as taikhoan);
     }
 }
예제 #2
0
 public test(taikhoan obj)
 {
     InitializeComponent();
     bindingSourceTK.DataSource = obj;
 }