Ejemplo n.º 1
0
        private void DrillDownDetails(string WorkingName)
        {
            Person p = new Person();
            string n = p.Name.ToString();

            //string WorkingName = ChildrenList.SelectedItem.ToString();
            for (int i = 0; i < myParent.Population.Size(); i++)
            {
                if (WorkingName == myParent.Population[i].Name.ToString())
                {
                    p = myParent.Population[i];
                }
            }
            if (p.Name.ToString() != n)
            {
                PersonDetails pd = new PersonDetails(p, myParent);
                pd.Show();
            }
            else
            {
                MessageBoxButtons mbb     = MessageBoxButtons.OK;
                string            message = "Person not found. :(";
                string            caption = "Uh oh...";
                DialogResult      dr      = MessageBox.Show(this, message, caption, mbb);
            }
        }
Ejemplo n.º 2
0
 private void DetailsBtn_Click(object sender, EventArgs e)
 {
     if (PopulationList.SelectedIndex != -1)
     {
         PersonDetails pd = new PersonDetails(pop[PopulationList.SelectedIndex],this);
         pd.Show();
     }
 }
Ejemplo n.º 3
0
 private void DetailsBtn_Click(object sender, EventArgs e)
 {
     if (PopulationList.SelectedIndex != -1)
     {
         PersonDetails pd = new PersonDetails(pop[PopulationList.SelectedIndex], this);
         pd.Show();
     }
 }