Exemple #1
0
        static public void Enter()
        {
            String loginP;
            string passwordP;

            Console.WriteLine("Login: "******"Password: "******"Try again");
                            Enter();
                        }
                    }
                }
            }
            else
            {
                Console.WriteLine("You must fill all field");
                Enter();
            }
        }
Exemple #2
0
        public void Convert(int val)
        {
            if (val == 1)
            {
                Console.WriteLine(" h - help \n a - account \n f - found book \n p - print book \n d - do order \n t - take a book \n r - return book \n c - timetable \n b - add book \n o - all books \n");
            }
            else if (val == 2)
            {
                MainPro.Enter();
            }

            else if (val == 3)
            {
                FoundBookMenu();
            }
            else if (val == 4)
            {
                ChooseAgen();
                PrintBookAll();
            }
            else if (val == 5)
            {
                DoOrder();
            }
            else if (val == 6)
            {
                string name;
                string autor;

                Console.WriteLine("Please enter information about book \n");
                Console.WriteLine("Name of book: ");
                name = Console.ReadLine();
                Console.WriteLine("Autor of book: ");
                autor = Console.ReadLine();

                String loginP;
                string passwordP;
                Console.WriteLine("Login: "******"Password: "******"Try again");
                        }
                    }
                }
            }
            else if (val == 7)
            {
                string name;
                string autor;

                Console.WriteLine("Please enter information about book \n");
                Console.WriteLine("Name of book: ");
                name = Console.ReadLine();
                Console.WriteLine("Autor of book: ");
                autor = Console.ReadLine();

                String loginP;
                string passwordP;
                Console.WriteLine("Login: "******"Password: "******"Try again");
                        }
                    }
                }
            }
            else if (val == 8)
            {
                MainPro.Room();
            }
            else if (val == 9)
            {
                MainPro.AddBook();
            }
            else if (val == 10)
            {
                AllBooks();
            }

            else
            {
                Console.WriteLine("ERROR");
            }
        }