public Show_Products(Publisher apublisher) { InitializeComponent(); foreach (Book item in HiTechForm.bookList) { if (item.Publisher.PubId.Equals(apublisher.PubId)) { AppOperatorDA.listBook(metroListViewProd, item); } } foreach (Software item in HiTechForm.softwareList) { if (item.Publisher.PubId.Equals(apublisher.PubId)) { AppOperatorDA.listSoft(metroListViewProd, item); } } }
public Show_Products(Author aauthor) { InitializeComponent(); foreach (Book item in HiTechForm.bookList) { if (item.Author.ID == aauthor.ID) { AppOperatorDA.listBook(metroListViewProd, item); } } foreach (Software item in HiTechForm.softwareList) { if (item.Author.ID == aauthor.ID) { AppOperatorDA.listSoft(metroListViewProd, item); } } }