예제 #1
0
        private void load()
        {
            gridDanhSach.DataSource = Phong_Info.SelectAllTable();

            Util.FormHandler.SetSourceForGridCustomCollumns(gridDanhSach, new string[] { "TenPhong", "DiaChi" }, new string[] { "Tên phòng", "Địa chỉ" });
            Util.ResetControl.ReadOnly_Control(this);
            isInsert = 0;
        }
예제 #2
0
 private void frmDichVu_Load(object sender, EventArgs e)
 {
     load();
     cbx_Phong.DataSource    = Phong_Info.SelectAllTable();
     cbx_Phong.ValueMember   = "TenPhong";
     cbx_Phong.DisplayMember = "PhongID";
     Util.FormHandler.SetEnterKeyForAllControlsLevel(txtMaDV.GetType(), this.Controls);
     Util.FormHandler.SetEnterKeyForAllControlsLevel(txtDonGia.GetType(), this.Controls);
     Util.ResetControl.SetEnterForUltraComboUltraTextBox(new UltraCombo[] { cbx_Phong }, new TextBox[] { txtPhong });
 }