2024-04-29 22:57:48 +02:00
|
|
|
|
using System.Windows;
|
2024-05-06 19:13:17 +02:00
|
|
|
|
using WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels;
|
2024-04-28 18:00:25 +02:00
|
|
|
|
|
|
|
|
|
|
namespace WD7UVN_SzTGUI_2023242.Client.WPF.Windows
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Interaction logic for GetAllMaintainerTeams.xaml
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class GetAllMaintainerTeams : Window
|
|
|
|
|
|
{
|
|
|
|
|
|
public GetAllMaintainerTeams()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
2024-04-29 22:57:48 +02:00
|
|
|
|
|
|
|
|
|
|
private void CreateNewMaintainerTeam(object sender, RoutedEventArgs e)
|
|
|
|
|
|
{
|
2024-05-06 19:13:17 +02:00
|
|
|
|
CreateNewMaintainerTeamViewModel viewModel = new CreateNewMaintainerTeamViewModel();
|
|
|
|
|
|
viewModel.NewMaintainerTeamCreated += (newMaintainerTeam) =>
|
|
|
|
|
|
{
|
|
|
|
|
|
var getAllMaintainerTeamsViewModel = (GetAllMaintainerTeamsViewModel)DataContext;
|
|
|
|
|
|
if (getAllMaintainerTeamsViewModel != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
|
{
|
|
|
|
|
|
getAllMaintainerTeamsViewModel.MaintainerTeams.Add(newMaintainerTeam);
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
Window window = new CreateNewMaintainerTeam(viewModel);
|
2024-04-29 22:57:48 +02:00
|
|
|
|
window.Show();
|
|
|
|
|
|
}
|
2024-04-28 18:00:25 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|