Exemple #1
0
        private void applyButton_Click(object sender, RoutedEventArgs e)
        {
            String newParticipiant = applyBox.Text;

            Model.Project current = (Model.Project)projektListAss.SelectedItem;
            if (current == null)
            {
                return;
            }
            current.AddParticipant(newParticipiant);
            logger.SaveLog(current.Participants.ToString(), FileLogger.LogType.Debug);
            projectDao.UpdateProject(current);
        }
Exemple #2
0
 private void projektListAss_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     studentList.Items.Clear();
     Model.Project current = (Model.Project)projektListAss.SelectedItem;
     if (current == null)
     {
         return;
     }
     foreach (String participiant in current.Participants)
     {
         studentList.Items.Add(participiant);
     }
     descField.Items.Clear();
     descField.Items.Add(current.Description);
 }