private void button1_Click(object sender, EventArgs e)
        {
            string           caption = titleLbl.Text + " Destination";
            LocationViewForm myForm  = new LocationViewForm(CurrentAdventure.Location, caption, number);

            myForm.ShowDialog();
        }
Exemple #2
0
        private void viewLocationBtn_Click(object sender, EventArgs e)
        {
            string           caption = "Destination Details";
            LocationViewForm myForm  = new LocationViewForm(currentAdventure.Location, caption, number);

            myForm.ShowDialog();
        }
        private void viewHome_Click(object sender, EventArgs e)
        {
            Person           person  = ReturnPerson();
            string           caption = person.Name + "'s Hometown";
            LocationViewForm myForm  = new LocationViewForm(person.Location, caption, number);

            myForm.ShowDialog();
        }
        private void viewHome_Click(object sender, EventArgs e)
        {
            LocationLogic    locationLogic = new LocationLogic();
            string           caption       = person.Name + "'s Hometown";
            LocationViewForm myForm        = new LocationViewForm(locationLogic.GetLocation(person.HomeTownLocationID), caption, number);

            myForm.ShowDialog();
        }