//--------------------------------------------------------------------- // DISPLAY NUMBER OF PROJECTS : void //--------------------------------------------------------------------- public static void DisplayCount() { int count = ProjectCollection.GetCount(); Console.WriteLine("The total number of records so far is : {0}", count); }
//--------------------------------------------------------------------- // MODIFY SELECTED ITEM FIELD : void //--------------------------------------------------------------------- public static void ModifyItem() { Console.WriteLine("Enter the ITEM NUMBER you wish to modify: "); int sel = Convert.ToInt32(Console.ReadLine()); if (sel < 0 || sel > (ProjectCollection.GetCount() - 1)) { Console.WriteLine("Enter a number from 0 to {0}: ", (ProjectCollection.GetCount() - 1)); sel = Convert.ToInt32(Console.ReadLine()); } //Console.WriteLine(sel); ProjectCollection.Modify(sel); }