Exemplo n.º 1
0
        private void AddCusRes_Click(object sender, RoutedEventArgs e)
        {
            ResWindow = new Window1
            {
                Owner       = this,
                DataContext = researcher
            };
            ResWindow.CBox.ItemsSource = TeamOb.Topics;

            if (ResWindow.ShowDialog() == true)
            {
                TeamOb.AddPerson((Researcher)researcher.DeepCopy());
            }
        }
Exemplo n.º 2
0
        private void AddCustomResearcherCommandHandler(object sender, ExecutedRoutedEventArgs e)
        {
            Researcher newResearcher = researcherStub.DeepCopy() as Researcher;

            team.Add(newResearcher);
        }