コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Назва книги: ");
            Titles title = new Titles();

            title.Content = Console.ReadLine();
            Console.WriteLine("Автор книги: ");
            Authors author = new Authors();

            author.Content = Console.ReadLine();
            Console.WriteLine("Зміст книги: ");
            Contents content = new Contents();

            content.Content = Console.ReadLine();
            Book book = new Book(title, author, content);

            book.Show();
            Console.ReadKey();
        }
コード例 #2
0
ファイル: Book.cs プロジェクト: BohdanHarmata/FIT_06_2_2020
 public Book(Titles title, Authors author, Contents content)
 {
     this.title    = title;
     this.author   = author;
     this.contents = content;
 }
コード例 #3
0
ファイル: MenegerOfStorage.cs プロジェクト: Rondelone/Books
        private void buttonAuthor_Click(object sender, EventArgs e)
        {
            Authors authors = new Authors();

            authors.Show();
        }