private void BtnSet_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var pointset = new Point { Num = pointtext.Text }; studentStatisticsEDMContainer.PointSet.Add(pointset); studentStatisticsEDMContainer.SaveChanges(); }
private void BtnSet_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var groupe = new Group { Name = Name.Text }; studentStatisticsEDMContainer.GroupSet.Add(groupe); studentStatisticsEDMContainer.SaveChanges(); }
private void BtnSet_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer();; var type = new Type { NameType = NameType.Text }; studentStatisticsEDMContainer.TypeSet.Add(type); studentStatisticsEDMContainer.SaveChanges(); }
private void SetPrepod_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var descipline = new DisciplineSet { Name = name.Text, Kafedra = kafedra.Text }; studentStatisticsEDMContainer.DisciplineSetSet.Add(descipline); studentStatisticsEDMContainer.SaveChanges(); }
private void CtnSet_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var student = new Student { Name = Name.Text, Address = Address.Text, Phone = Phone.Text, Groupe = Groupe.SelectedItem.ToString(), Sername = Serame.Text }; studentStatisticsEDMContainer.StudentSet.Add(student); studentStatisticsEDMContainer.SaveChanges(); }
private void SetPrepod_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var prepod = new Teacher { Address = adress.Text, Discipline = discipline.SelectedItem.ToString(), Name = name.Text, Phone = phone.Text, Sername = sename.Text }; studentStatisticsEDMContainer.TeacherSet.Add(prepod); studentStatisticsEDMContainer.SaveChanges(); }
private void Set_Click(object sender, RoutedEventArgs e) { StudentStatisticsEDMContainer studentStatisticsEDMContainer = new StudentStatisticsEDMContainer(); var studstat = new StudentStatistic { Data = date.Text, NameStudent = NameStudent.SelectedItem.ToString(), NameTeacher = NameTeacher.SelectedItem.ToString(), Point = Points.SelectedItem.ToString(), Type = Type.SelectedItem.ToString(), Comment = Comment.Text }; studentStatisticsEDMContainer.StudentStatisticSet.Add(studstat); studentStatisticsEDMContainer.SaveChanges(); }