MainWindow.xaml.cs 921 B

1234567891011121314151617181920212223242526272829303132333435
  1. using FastReport;
  2. using System.Windows;
  3. namespace CustomDesigner
  4. {
  5. /// <summary>
  6. /// Interaction logic for MainWindow.xaml
  7. /// </summary>
  8. public partial class MainWindow : Window
  9. {
  10. public MainWindow()
  11. {
  12. InitializeComponent();
  13. designer.Report = new Report();
  14. // in case you need more control over how to load the designer configuration, use this code
  15. /*designer.HandleWindowEvents = false;
  16. this.Loaded += (s, e) =>
  17. {
  18. designer.RestoreConfig();
  19. designer.StartAutoSave();
  20. };
  21. this.Closing += (s, e) =>
  22. {
  23. designer.ParentWindowClosing(e);
  24. if (!e.Cancel)
  25. {
  26. designer.SaveConfig();
  27. designer.StopAutoSave();
  28. }
  29. };*/
  30. }
  31. }
  32. }