Exemplo n.º 1
0
        private void btnadd_Click(object sender, EventArgs e)
        {
            //figure out what is selected from the diver list
            //copy that diver to point list
            //do we remove the diver from the diver list? - no
            hoppare selectedItem = (hoppare)DiverList.SelectedItem;

            //MessageBox.Show(selectedItem.FirstName);
            hopparedata.Add(selectedItem);
            hoppbinding.ResetBindings(true);//list is not changed
        }
Exemplo n.º 2
0
        private void btnstart_Click(object sender, EventArgs e)
        {
            foreach (hoppare item in hopparedata)
            {
                item.dive = true;
            }
            hoppare selectedItem = (hoppare)pointlist.SelectedItem;

            hopparedata.Remove(selectedItem);
            //hoppareBinding.DataSource = tournatment.hopparelist.Where(x => x.dive == false).ToList();
            hoppbinding.ResetBindings(false);
            // hoppareBinding.ResetBindings(false);
        }