Exemple #1
0
        public void AddBook()
        {
            Text = "Lägg till ny bok...";

            var addBook = new UserControlAddOrEditBooks {
                Dock = DockStyle.Fill
            };

            Size = addBook.Size;
            Controls.Add(addBook);
        }
Exemple #2
0
        public void EditBook(Böcker book)
        {
            Text = "Ändra bok...";

            var editBook = new UserControlAddOrEditBooks {
                Dock = DockStyle.Fill
            };

            Size = editBook.Size;
            Controls.Add(editBook);
            editBook.LoadBook(book);
        }