示例#1
0
        public static IEngine CreateEngine(DeviceType device)
        {
            IEngine result;

            switch (device)
            {
            case DeviceType.Garmin:
                result = new EngineGarmin();
                break;

            case DeviceType.iPhone:
            case DeviceType.iPhoneRetina:
            case DeviceType.iPad:
            case DeviceType.iPadRetina:
                result = new EngineiOS(device);
                break;

            case DeviceType.WFPlayer:
                result = new EngineWFPlayer();
                break;

            case DeviceType.OpenWIG:
            case DeviceType.WhereYouGo:
                result = new EngineOpenWIG();
                break;

            case DeviceType.XMarksTheSpot:
                result = new EngineXMarksTheSpot();
                break;

            case DeviceType.Emulator:
            case DeviceType.PPC2003:
            default:
                result = new EnginePocketPC();
                break;
            }

            return(result);
        }
示例#2
0
		public static IEngine CreateEngine (DeviceType device)
		{
			IEngine result;

			switch (device) {
			case DeviceType.Garmin:
				result = new EngineGarmin ();
				break;
			case DeviceType.iPhone:
			case DeviceType.iPhoneRetina:
			case DeviceType.iPad:
			case DeviceType.iPadRetina:
				result = new EngineiOS (device);
				break;
			case DeviceType.WFPlayer:
				result = new EngineWFPlayer();
				break;
			case DeviceType.OpenWIG:
			case DeviceType.WhereYouGo:
				result = new EngineOpenWIG ();
				break;
			case DeviceType.XMarksTheSpot:
				result = new EngineXMarksTheSpot ();
				break;
			case DeviceType.Emulator:
			case DeviceType.PPC2003:
			default:
				result = new EnginePocketPC ();
				break;
			}

			return result;
		}