Using Html/Pdf Initializer
This commit is contained in:
@ -22,6 +22,7 @@ namespace WGneu.Windows {
|
||||
public partial class MainWindow : Window {
|
||||
private readonly WgContext _context = new WgContext();
|
||||
private CollectionViewSource countryViewSource;
|
||||
|
||||
public MainWindow() {
|
||||
InitializeComponent();
|
||||
countryViewSource = (CollectionViewSource)FindResource("countryViewSource");
|
||||
@ -29,8 +30,9 @@ namespace WGneu.Windows {
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e) {
|
||||
_context.Countries.Load();
|
||||
Documents.Pdf.Init();
|
||||
countryViewSource.Source = _context.Countries.Local.ToObservableCollection();
|
||||
Button3.IsEnabled = App.IsPrintingReady;
|
||||
Button4.IsEnabled = App.IsPrintingReady;
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e) {
|
||||
|
Reference in New Issue
Block a user