finished HW #1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user