public ReaderForm(Reader r, AddBookDelegate sender, RemoveBook rb, RemoveReader rr) { remove_this = rr; remove_b = rb; this_reader = r; this.Text = this_reader.ToString(); lib_add_book = sender; InitializeComponent(); Controls.Add(new BooksBox(new Point(10, 10), Width - 40, Height - 60, lib_add_book, this_reader, remove_b)); }
public AddBookForm(AddBookDelegate ab_sender, GetAuthorsDelegate ga, AddAuthorDelegate aa_sender) { ABD_sender = ab_sender; AAD_sender = aa_sender; get_authors = ga; InitializeComponent(); foreach (Author a in get_authors()) { checkedListBoxAuthors.Items.Add(a); } }
//private List<BookLine> lines; public BooksBox(Point P, int whidth, int height, AddBookDelegate sender, Reader r, RemoveBook rb) { del = sender; remove_b = rb; this_reader = r; Location = P; Width = whidth; Height = height; this.BackColor = Color.Gray; this.Anchor = (/*AnchorStyles.Bottom | AnchorStyles.Right | */ AnchorStyles.Left | AnchorStyles.Top); InitializeTable(); }
public BookLine(Point P, Book b, DateTime time_to_return, AddBookDelegate sender, Reader r, int width, int height, BooksBox.ReDrow redrow, RemoveBook remove_b) { this.redrow = redrow; this.BackColor = Color.LightGray; Location = P; book = b; this.time_to_return = time_to_return; this.remove_b = remove_b; lib_add_book = sender; parent_reader = r; Width = width; Height = height; this.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left /*| AnchorStyles.Right | AnchorStyles.Top*/); InitializeControls(); }