예제 #1
0
        public Book InputBookData()
        {
            Book bookModel = new Book();

            /* Book title */
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("title");
            bookModel.Title = _IConsoleClient.ClientInput();

            /* Book edition */

            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("edition");
            bookModel.Edition = _IConsoleClient.ClientInput();

            /* Book author */

            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("author");
            bookModel.Author = _IConsoleClient.ClientInput();

            /* Book barcode */
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("barcode");
            bookModel.Barcode = _IConsoleClient.ClientInput();

            /* Book copy  */
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("book copy");
            bookModel.Copycount = Int32.Parse(_IConsoleClient.ClientInput());

            return(bookModel);
        }
        public Student InputForCheckFine()
        {
            Student model = new Student();

            /* Student Id */
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("Student Id");
            model.Id = Int32.Parse(_IConsoleClient.ClientInput());

            return(model);
        }
예제 #3
0
        public ReturnBook InputReturnBookData()
        {
            ReturnBook model = new ReturnBook();

            /*  Student Id  */
            _ConsoleClient.InitialMessage();
            _ConsoleClient.OutputMessage("StudentId");
            model.StudentId = Int32.Parse(_ConsoleClient.ClientInput());

            /*  BarCode   */
            _ConsoleClient.InitialMessage();
            _ConsoleClient.OutputMessage("Barcode");
            model.Barcode = _ConsoleClient.ClientInput();

            return(model);
        }
예제 #4
0
        public Student InputStudentData()
        {
            Student bookModel = new Student();

            /* student Name */
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessage("Name");

            bookModel.Name = _IConsoleClient.ClientInput();

            return(bookModel);
        }
        public int InitialDashboardMessage()
        {
            _IConsoleClient.InitialMessage();
            _IConsoleClient.OutputMessageBlank("Welcome to library system.");
            _IConsoleClient.OutputMessageBlank("Please enter   your choice: ");
            _IConsoleClient.OutputMessageBlank("To entry student information enter: 1");
            _IConsoleClient.OutputMessageBlank("To entry book information enter: 2");
            _IConsoleClient.OutputMessageBlank("To issue a book, enter:   3");
            _IConsoleClient.OutputMessageBlank("To   return a book enter: 4");
            _IConsoleClient.OutputMessageBlank("To check fine, enter: 5");
            _IConsoleClient.OutputMessageBlank("To receive fine,   enter: 6");

            _IConsoleClient.OutputMessageBlank("");
            _IConsoleClient.OutputMessageBlank("");
            _IConsoleClient.OutputMessage("Enter");
            int choicekey = Int32.Parse(_IConsoleClient.ClientInput());

            _IConsoleClient.InitialMessage();
            return(choicekey);
        }