Beispiel #1
0
 public StartLesson(MainWindow mainWindow)
 {
     InitializeComponent();
     this.classesList.DataSource = StudentClassProvider.GetClasess();
     this.subjectsList.Items.Clear();
     this.subjectsList.DataSource = SubjectsProvider.GetSubjectsNameList();
 }
 public AddStudentForm(MainWindow MainWindow)
 {
     InitializeComponent();
     this.mainWindow = MainWindow;
     this.mainWindow.Hide();
     this.studentClassList.DataSource = StudentClassProvider.GetClasess();
     this.dbConnection = AppContainer.GetDatabaseConnection();
 }
 // Constructor overloading with chaining original constructor
 public AddStudentForm(MainWindow MainWindow, Student student) : this(MainWindow)
 {
     this.currentStudent           = student;
     this.studentNameInput.Text    = student.names;
     this.studentStreetInput.Text  = student.street;
     this.studentCityInput.Text    = student.city;
     this.studentZipCodeInput.Text = student.zipCode;
     this.studentBirthDate.SetDate(Convert.ToDateTime(student.birthDate));
     this.studentClassList.DataSource = StudentClassProvider.GetClasess();
     this.studentClassList.SetSelected(this.studentClassList.FindString(student.studentClass), true);
     this.addStudentHeader.Hide();
     this.editStudentHeader.Show();
     this.editStudentFlag = true;
 }