Exemple #1
0
        private void trwPhong_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string msPhong;
            IEnumerable <tblMaytinh> dsMaytinhs;

            if (trwPhong.SelectedNode != null)
            {
                if (trwPhong.SelectedNode.Level == 1)
                {
                    msPhong       = trwPhong.SelectedNode.Tag.ToString();
                    txtPhong.Text = msPhong;
                    dsMaytinhs    = mt.GetMaytinhsThuocPhong(msPhong);

                    LoadMayTinh(lvwMay, dsMaytinhs);
                }
                else if (trwPhong.SelectedNode.Level == 2)
                {
                    tblMaytinh mtinh = null;
                    mtinh = (tblMaytinh)trwPhong.SelectedNode.Tag;
                    GanObjectToField(mtinh);
                }
            }
        }
Exemple #2
0
 private void detach_tblMaytinhs(tblMaytinh entity)
 {
     this.SendPropertyChanging();
     entity.tblPhonghoc = null;
 }
Exemple #3
0
 partial void DeletetblMaytinh(tblMaytinh instance);
Exemple #4
0
 partial void UpdatetblMaytinh(tblMaytinh instance);
Exemple #5
0
 partial void InserttblMaytinh(tblMaytinh instance);
Exemple #6
0
 void GanObjectToField1(tblMaytinh mt)
 {
     txtPhong.Text = mt.msPhong;
 }