public ServiceForm([CanBeNull] ServiceCategory sc) { _sc = sc; InitializeComponent(); using (var context = new DentalContext()) { //_objectListViewService.SetObjects(context.ServiceCategories); } InitService(); }