static void Main() { BookList model = new BookList(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm(model)); }
public ViewForm(BookList books) { InitializeComponent(); this.books = books; this.books.BookAdded += HandleBookAddedEvent; this.books.BookRemoved += HandleBookRemovedEvent; this.books.BookEdited += HandleBookEditedEvent; this.filter = EmptyFilter; }
public MainForm(BookList books) { views = new List <ViewForm>(); this.books = books; InitializeComponent(); }