Ejemplo n.º 1
0
 public void LoadStrand()
 {
     listStrand.Clear();
     listStrand = strand.Load();
     foreach (var item in listStrand)
     {
         cmbStrand.Items.Add(item.StrandName);
     }
 }
Ejemplo n.º 2
0
        public void LoadRecords()
        {
            //clear list

            dgvStrands.Rows.Clear();
            strands.Clear();

            //pass value to list
            strands = strand.Load();

            //loop through load it to list view
            foreach (var item in strands)
            {
                //Load to datagridView
                dgvStrands.Rows.Add(item.Id, item.StrandName, item.StrandDesc);
            }
        }//End LoadRecords()
Ejemplo n.º 3
0
        public void LoadStrand()
        {
            //clear list

            //dgvDiscount.Rows.Clear();
            cmbStrand.Items.Clear();
            strands.Clear();

            //pass value to list
            strands = strand.Load();

            //loop through load it to list view
            foreach (var item in strands)
            {
                //Load to datagridView
                //dgvDiscount.Rows.Add(item.Id, item.DiscountName, item.DiscountAmount);
                cmbStrand.Items.Add(item.StrandName);
            }
        }//End LoadRecords()