Пример #1
0
 private void listBooksMenu_Click(object sender, EventArgs e)
 {
     booksListForm              = new BooksListForm(this);
     booksListForm.MdiParent    = this;
     booksListForm.FormClosing += (send, ev) => { childViewClosing(send as Form, ev); };
     ++openViewsCount;
     booksListForm.Show();
 }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();
            booksCollection            = new BooksCollection();
            booksListForm              = new BooksListForm(this);
            booksListForm.WindowState  = FormWindowState.Maximized;
            booksListForm.FormClosing += (sender, e) => { childViewClosing(sender as Form, e); };

            currentView = booksListForm;
            booksListForm.RegisterForItemCountChanges(UpdateStatusBar);

            openViewsCount    = 1;
            MdiChildActivate += setStatusBarSource;
            booksListForm.Show();
        }