コード例 #1
0
 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));
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 //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();
 }
コード例 #4
0
 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();
 }