public AddSportsHallForm()
        {
            InitializeComponent();

            _sportsHallTypesRepository = new SqlSportsHallTypesRepository(ConfigurationManager.ConnectionStrings["SportsComplexConnectionString"].ConnectionString);
            _sportsHallRepository      = new SqlSportsHallsRepository(ConfigurationManager.ConnectionStrings["SportsComplexConnectionString"].ConnectionString);
        }
        public NewRentForm()
        {
            InitializeComponent();

            _sportsHallTypesRepository = new SqlSportsHallTypesRepository(_connString);
            _sportsHallsRepository     = new SqlSportsHallsRepository(_connString);
            _customersRepository       = new SqlCustomersRepository(_connString);
            _rentsRepository           = new SqlRentsRepository(_connString);
        }
 public PriceListForm()
 {
     InitializeComponent();
     _hallsRepository = new SqlSportsHallsRepository(connString);
 }