Example #1
0
        public static void AddResearchPaperDetails()
        {
            try
            {
                XmlDeserializationPaper(ref allResPaper);
            }
            catch (Exception ex)
            {
                Console.WriteLine("1st Entry " + ex.Message);
            }


            Console.WriteLine("Add ID, Author Name, Publication Title, Department, Date of Publication");
            ResearchPaper rPaper = new ResearchPaper();

            rPaper.Id                = int.Parse(Console.ReadLine());
            rPaper.Author            = Console.ReadLine();
            rPaper.Title             = Console.ReadLine();
            rPaper.Department        = Console.ReadLine();
            rPaper.DateOfPublication = Console.ReadLine();

            allResPaper.AddPaper(rPaper);


            XMLSerializationPaper(ref allResPaper);
        }
 public void AddPaper(ResearchPaper rPaper)
 {
     allResearchPaper.Add(rPaper);
 }