debug_teacherWindowFromAdmin

This commit is contained in:
Your Name 2025-06-16 21:05:57 +03:00
parent 174854d4ba
commit e9922ba4c4
13 changed files with 12 additions and 5 deletions

View File

@ -97,9 +97,12 @@ public partial class AdminWindow : Window
TeachersFromAdminWindow teachersFromAdminWindow = new TeachersFromAdminWindow();
var result = await teachersFromAdminWindow.ShowDialog<List<DisciplineGroupTeacher>>(this);
if (result != null && result.Count > 0)
{
dataSourceDisciplineGroupTeachers.AddRange(result);
DisplayAll();
}
}
private void ButtonCheckDiscipline_OnClick(object? sender, RoutedEventArgs e)
{

View File

@ -28,6 +28,10 @@ public partial class TeachersFromAdminWindow : Window
private void ButtonBack_OnClick(object? sender, RoutedEventArgs e)
{
if (result.DisciplineGroupTeachers == null)
{
Close();
}
Close(result.DisciplineGroupTeachers);
}
@ -51,7 +55,7 @@ public partial class TeachersFromAdminWindow : Window
{
return;
}
dataSourceTeachers.AddRange(result.Teachers);
dataSourceTeachers.AddRange(result.Teachers ?? new List<Teacher>());
DisplayTeachers();
}
}

Binary file not shown.

Binary file not shown.

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("kursovaya")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d7abb5ffd689ebecb45a3eaa84e87dfd90e6d9f7")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+174854d4ba6a0a72f77efa227a5fba05ab27d5ea")]
[assembly: System.Reflection.AssemblyProductAttribute("kursovaya")]
[assembly: System.Reflection.AssemblyTitleAttribute("kursovaya")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
56b533d6bc40151d11e8da76022af04036771e41ff8ddd0fbff74168ace28e08
266de39eafce47d0cb23e5249264d18024e4509a623c2cf2b322e5b0250b8541

Binary file not shown.

Binary file not shown.

Binary file not shown.