static void InitializeComponent() { menu = string.Format($"Customer MANAGEMENT SOFTWARE~\nTO ADD A NEW CUSTOMER-->PRESS 1\nTO UPDATE A CUSTOMER--->PRESS 2\nTO DELETE A CUSTOMER------------PRESS 3\nTO FIND A CUSTOMER------------->PRESS 4\nPS:ANY OTHER KEY IS CONSIDERED AS EXIT THE APP\n"); mgr = BookFactoryComponent.GetComponent(); mgr.AddNewCustomer(new Cust { CustID = 123, CustName = "subin", CustAddress = "tvm", CustSalary = 1200 }); mgr.AddNewCustomer(new Cust { CustID = 124, CustName = "tom", CustAddress = "mum", CustSalary = 5000 }); mgr.AddNewCustomer(new Cust { CustID = 125, CustName = "jack", CustAddress = "kollam", CustSalary = 3509 }); mgr.AddNewCustomer(new Cust { CustID = 126, CustName = "arun", CustAddress = "delhi", CustSalary = 8000 }); }
static void InitializeComponent() { menu = string.Format($"~~~~~~~BOOK STORE MANAGEMENT SOFTWARE~~~~~~~~~~~~~~~~~~~\nTO ADD A NEW BOOK------------->PRESS 1\nTO UPDATE A BOOK------------>PRESS 2\nTO DELETE A BOOK------------PRESS 3\nTO FIND A BOOK------------->PRESS 4\nPS:ANY OTHER KEY IS CONSIDERED AS EXIT THE APP\n"); //int size = MyConsole.getNumber("Enter the no of Books U wish to store in the BookStore"); mgr = BookFactoryComponent.GetComponent(); mgr.AddNewBook(new Book { BookID = 123, Title = "A Suitable Boy", Author = "Vikram Seth", Price = 1200 }); mgr.AddNewBook(new Book { BookID = 124, Title = "Disclosure", Author = "Micheal Crichton", Price = 500 }); mgr.AddNewBook(new Book { BookID = 125, Title = "The Mahabharatha", Author = "C Rajagoalachari", Price = 350 }); mgr.AddNewBook(new Book { BookID = 126, Title = "The Discovery of India", Author = "J . Nehru", Price = 800 }); }