protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); SqlConnection connection = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["connectionString"]); AttendanceMapper mapper = new AttendanceMapper(connection); AttendanceService service = new AttendanceService(mapper); MainWindow view = new MainWindow(service); view.Show(); }
public AttendanceService(AttendanceMapper mapper) { this.mapper = mapper; }