示例#1
0
        static void Main()
        {
            BookList model = new BookList();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(model));
        }
示例#2
0
 public ViewForm(BookList books)
 {
     InitializeComponent();
     this.books              = books;
     this.books.BookAdded   += HandleBookAddedEvent;
     this.books.BookRemoved += HandleBookRemovedEvent;
     this.books.BookEdited  += HandleBookEditedEvent;
     this.filter             = EmptyFilter;
 }
示例#3
0
 public MainForm(BookList books)
 {
     views      = new List <ViewForm>();
     this.books = books;
     InitializeComponent();
 }