Add Print/

This commit is contained in:
2023-03-05 00:16:47 +01:00
parent d12266abbb
commit 6b8bd3ca00
7 changed files with 84 additions and 0 deletions

View File

@ -18,5 +18,6 @@
<Grid>
<ComboBox HorizontalAlignment="Left" Margin="175,149,0,0" VerticalAlignment="Top" Width="120" ItemsSource="{Binding Source={StaticResource countryViewSource}}" ItemTemplate="{StaticResource asdf}" SelectionChanged="ComboBox_SelectionChanged" IsEditable="True"/>
<Button x:Name="Button2" Content="Mitglieder" Margin="472,182,178,0" VerticalAlignment="Top" Click="Button2_Click"/>
<Button x:Name="Button3" Content="Print" Margin="425,255,225,0" VerticalAlignment="Top" Click="Button3_Click"/>
</Grid>
</Window>

View File

@ -32,6 +32,7 @@ namespace WGneu.Windows {
private void Window_Loaded(object sender, RoutedEventArgs e) {
_context.Countries.Load();
Print.Pdf.Init();
countryViewSource.Source = _context.Countries.Local.ToObservableCollection();
}
@ -45,6 +46,10 @@ namespace WGneu.Windows {
w.Show();
}
private void Button3_Click(object sender, EventArgs e) {
Print.Template.Test();
}
private void Button_Click(object sender, RoutedEventArgs e) {
}