コード例 #1
0
 public void reload()
 {
     this.btnLuu.Enabled  = false;
     this.btnHuy.Enabled  = false;
     this.btnThem.Enabled = true;
     this.btnSua.Enabled  = true;
     this.btnXoa.Enabled  = true;
     this.disableTextBoxSelected();
     this.dgvThongtin.ClearSelection();
     this.dataTable = BLAcc.getMenuAll();
     this.dgvThongtin.DataSource = dataTable;
     this.SetValueToTextBox(0);
 }
コード例 #2
0
ファイル: FormXuLi.cs プロジェクト: ddat705/ProjectNew
 public void reload(int check)
 {
     if (check == 0)
     {
         dtMenu = BLAcc.getMenuAll();
     }
     else
     {
         dtMenu = BLAcc.getMenuByLoai(check.ToString());
     }
     cbBoxTenMon.Items.Clear();
     foreach (DataRow x in dtMenu.Rows)
     {
         cbBoxTenMon.Items.Add(x[1].ToString());
     }
 }