Пример #1
0
        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();
        }
Пример #2
0
 public AttendanceService(AttendanceMapper mapper) {
     this.mapper = mapper;
 }