Example #1
0
 private void GUI_SanPham_Load(object sender, EventArgs e)
 {
     lstSP.DataSource          = ctl.loadListSP();
     lstSP.Columns[5].Visible  = false;
     lstSP.Columns[6].Visible  = false;
     lstSP.Columns[7].Visible  = false;
     lstSP.Columns[8].Visible  = false;
     lstSP.Columns[9].Visible  = false;
     lstSP.Columns[10].Visible = false;
     lstSP.Columns[11].Visible = false;
     lstSP.Columns[12].Visible = false;
     cbNCC.DataSource          = ctlNCC.loadListNCC();
     cbNCC.DisplayMember       = "TENNCC";
     cbNCC.ValueMember         = "MANCC";
     cbNCC.AutoCompleteMode    = AutoCompleteMode.SuggestAppend;
     cbNCC.AutoCompleteSource  = AutoCompleteSource.ListItems;
     cboLSP.DataSource         = ctlLSP.loadListLSP();
     cboLSP.DisplayMember      = "TENLOAI";
     cboLSP.ValueMember        = "MALOAI";
     cboLSP.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
     cboLSP.AutoCompleteSource = AutoCompleteSource.ListItems;
 }
Example #2
0
 private void GUI_LoaiSanPham_Load(object sender, EventArgs e)
 {
     lstLSP.DataSource         = ctl.loadListLSP();
     lstLSP.Columns[3].Visible = false;
 }