public TechInspectionWindow() { InitializeComponent(); DataContext = this; driverRep = new DriverRepository(); carRep = new CarRepository(); techInspectionRep = new TechInspectionRep(); }
public MainWindow() { InitializeComponent(); DataContext = this; techInspectionRep = new TechInspectionRep(); reportRep = new ReportRepository(); timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromMinutes(1); timer.Tick += Timer_Tick; timer.Start(); }