コード例 #1
0
ファイル: AuthorsForm.cs プロジェクト: goncasilik/kutuphanem
        private void button2_Click(object sender, EventArgs e)
        {
            Author newAuthor = new Author
            {
                Name = textBox2.Text
            };

            AuthorHelper.AddAuthor(newAuthor);
            ListAuthors();
        }
コード例 #2
0
        public static void Main()
        {
            MemberHelper memberHelper = new MemberHelper();

            memberHelper.AddMember("Maryam", "Airport", 033267888);
            AuthorHelper authorHelper = new AuthorHelper();

            authorHelper.AddAuthor("Mark Ryan");
            BookHelper bookHelper = new BookHelper();

            bookHelper.AddBook("Calculus", 3);
            BookIssueHelper bookIssueHelper = new BookIssueHelper();

            bookIssueHelper.AddBookIssue("23-12-2020", 2, 3);
        }