Beispiel #1
0
 public void showdata(Clskhachsan ks)
 {
     hoten.Text          = ks.hoten;
     ksngaytro.Text      = ks.snt;
     ksloaiphongtro.Text = ks.lpt;
     ksgiaphong.Text     = ks.giaphg;
     scmtnd.Text         = ks.CMTND;
     namsinh.Text        = ks.namsinh;
 }
Beispiel #2
0
 void NhapttClick(object sender, EventArgs e)
 {
     ks.giaphg  = ksgiaphong.Text;
     ks.snt     = ksngaytro.Text;
     ks.lpt     = ksloaiphongtro.Text;
     ks.hoten   = hoten.Text;
     ks.CMTND   = scmtnd.Text;
     ks.namsinh = namsinh.Text;
     source.Add(ks);
     ks = new Clskhachsan();
     cleardata();
     dtkhachsan.Refresh();
 }