Beispiel #1
0
        /// <inheritdoc/>
        protected override void PrintHeader(TextWriter writer)
        {
            base.PrintHeader(writer);

            writer.Write("  Platform name:                           ");
            writer.WriteLine(PlatformName);

            writer.Write("  Platform version:                        ");
            writer.WriteLine(PlatformVersion.ToString());

            writer.Write("  Vendor name:                             ");
            writer.WriteLine(VendorName);

            writer.Write("  Vendor:                                  ");
            writer.WriteLine(Vendor.ToString());

            writer.Write("  Device type:                             ");
            writer.WriteLine(DeviceType.ToString());

            writer.Write("  Clock rate:                              ");
            writer.Write(ClockRate);
            writer.WriteLine(" MHz");
        }
Beispiel #2
0
        private bool CheckEmulator(string name, PlatformVersion version)
        {
            bool found = false;

            switch (version)
            {
                case PlatformVersion.Version71:
                    found = (name == WP70EmulatorName) || name.StartsWith(WP71EmulatorName);
                    break;
                case PlatformVersion.Version80:
                    found = name.StartsWith(WP8EmulatorName);
                    break;
                default:
                    throw new NotSupportedException(String.Format("SDK '{0}' is not supported.", version.ToString()));
            }

            return found;
        }
Beispiel #3
0
        private bool CheckDevice(string name, PlatformVersion version)
        {
            bool found = false;

            switch (version)
            {
            case PlatformVersion.Version71:
                found = (name == WP7DeviceName);
                break;

            case PlatformVersion.Version80:
                found = (name == WP8DeviceName);
                break;

            default:
                throw new NotSupportedException(String.Format("SDK '{0}' is not supported.", version.ToString()));
            }

            return(found);
        }
Beispiel #4
0
        private bool CheckDevice(string name, PlatformVersion version)
        {
            bool found = false;

            switch (version)
            {
                case PlatformVersion.Version71:
                    found = (name == WP7DeviceName);
                    break;
                case PlatformVersion.Version80:
                    found = (name == WP8DeviceName);
                    break;
                default:
                    throw new NotSupportedException(String.Format("SDK '{0}' is not supported.", version.ToString()));
            }

            return found;
        }
Beispiel #5
0
        private bool CheckEmulator(string name, PlatformVersion version)
        {
            bool found = false;

            switch (version)
            {
            case PlatformVersion.Version71:
                found = (name == WP70EmulatorName) || name.StartsWith(WP71EmulatorName);
                break;

            case PlatformVersion.Version80:
                found = name.StartsWith(WP8EmulatorName);
                break;

            default:
                throw new NotSupportedException(String.Format("SDK '{0}' is not supported.", version.ToString()));
            }

            return(found);
        }