finished HW #1

This commit is contained in:
Digi
2025-02-22 09:59:35 +01:00
parent 3df13eabe6
commit 4644da4212
30 changed files with 537 additions and 31 deletions

View File

@@ -15,6 +15,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ValasztasGUI.View;
namespace ValasztasGUI
{
@@ -24,7 +25,7 @@ namespace ValasztasGUI
public static class Eredmeny
{
public static List<Kepviselo> kepviselok = new List<Kepviselo>();
public static List<Kepviselo> kepviselok = null;
}
public class Kepviselo
@@ -199,5 +200,17 @@ namespace ValasztasGUI
{
Kepviselo.ValosztokeruletiGyoztesek(Eredmeny.kepviselok);
}
private void Statisztika_Click(object sender, RoutedEventArgs e)
{
if (Eredmeny.kepviselok != null)
{
Statisztika statisztika = new Statisztika();
statisztika.Show();
return;
}
MessageBox.Show("Az adatok nem kerültek importálásra!", "Hiba", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
}