Exemplo n.º 1
0
        private void removeRow(object obj)
        {
            Population tempPop = new Population();

            tempPop.Date  = SelectedPopulation.Date;
            tempPop.Sex   = SelectedPopulation.Sex;
            tempPop.Value = SelectedPopulation.Value;

            for (int i = 0; i < Populations.Count(); i++)
            {
                if ((Populations[i].Date.Equals(tempPop.Date)) && (Populations[i].Sex.Equals(tempPop.Sex)) &&
                    (Populations[i].Value.Equals(tempPop.Value)))
                {
                    Populations.RemoveAt(i);
                }
            }
        }