public ReportBookPage(ReportBookPageParameters parameters) : base(parameters) { Publishers = new List <Publisher>(); Rubrics = new List <Rubric>(); SearchItem = new LibraryRibbonTextEdit(parameters.SearchItem); PublisherItem = new LibraryRibbonComboBox(parameters.PublisherItem); RubricItem = new LibraryRibbonComboBox(parameters.RubricItem); ObligatorsItem = parameters.ObligatorsItem; GridControl.GridView.OptionsDetail.AllowExpandEmptyDetails = true; InitHandlers(); }
public BookPage(BookPageParameters parameters) : base(parameters) { Publishers = new List <Publisher>(); Rubrics = new List <Rubric>(); Authors = new List <Author>(); SearchItem = new LibraryRibbonTextEdit(parameters.SearchItem); PublisherItem = new LibraryRibbonComboBox(parameters.PublisherItem); RubricItem = new LibraryRibbonComboBox(parameters.RubricItem); AuthorItem = new LibraryRibbonComboBox(parameters.AuthorItem); SearchItem.KeyDown += SearchItem_KeyDown; PublisherItem.EditValueChanged += PublisherItem_EditValueChanged; RubricItem.EditValueChanged += RubricItem_EditValueChanged; AuthorItem.EditValueChanged += AuthorItem_EditValueChanged; parameters.AuthorsButton.ItemClick += AuthorsButton_ItemClick; GridControl.GridView.MasterRowGetRelationCount += GridView_MasterRowGetRelationCount; GridControl.GridView.MasterRowGetRelationName += GridView_MasterRowGetRelationName; GridControl.GridView.MasterRowEmpty += GridView_MasterRowEmpty; GridControl.GridView.MasterRowExpanding += GridView_MasterRowExpanding; GridControl.GridView.MasterRowGetChildList += GridView_MasterRowGetChildList; GridControl.GridView.OptionsDetail.AllowExpandEmptyDetails = true; }