Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public test(taikhoan obj)
 {
     InitializeComponent();
     bindingSourceTK.DataSource = obj;
 }