예제 #1
0
        static void Main()
        {
            BookList model = new BookList();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(model));
        }
예제 #2
0
파일: ViewForm.cs 프로젝트: Kasia4/Books_WF
 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();
 }