Example #1
0
        private void listJobs(VehicleMaintJobs jobs)
        {
            int             i;
            VehicleMaintJob job;

            for (i = 0; i < jobs.Count; ++i)
            {
                job = jobs[i];
                Console.WriteLine("{0,2}. {1}", i + 1, job);
            }

            Console.WriteLine("\n{0,2}. Exit", ABORT_MENU_SELECTION);
        }
Example #2
0
        public JobListMenu(string title, VehicleMaintJobs jobs)
        {
            this.title = title;

            if (jobs != null && jobs.Count > 0)
            {
                menuItems = new MenuItem[jobs.Count];

                for (int i = 0; i < jobs.Count; ++i)
                {
                    menuItems[i] = new MenuItem(null, jobs[i].ToString());
                }
            }
        }
Example #3
0
		public JobListMenu(string title, VehicleMaintJobs jobs)
		{
			this.title = title;

			if (jobs != null && jobs.Count > 0)
			{
				menuItems = new MenuItem[jobs.Count];

				for (int i = 0; i < jobs.Count; ++i)
				{
					menuItems[i] = new MenuItem(null, jobs[i].ToString());
				}
			}
		}
Example #4
0
 static Menu()
 {
     incompleteJobs = new VehicleMaintJobs();
     completeJobs   = new VehicleMaintJobs();
 }
Example #5
0
		static Menu()
		{
			incompleteJobs = new VehicleMaintJobs();
			completeJobs = new VehicleMaintJobs();
		}
Example #6
0
		private void listJobs(VehicleMaintJobs jobs)
		{
			int i;
			VehicleMaintJob job;

			for(i=0; i<jobs.Count; ++i)
			{
				job = jobs[i];
				Console.WriteLine("{0,2}. {1}", i+1, job);
			}

			Console.WriteLine("\n{0,2}. Exit", ABORT_MENU_SELECTION);
		}