Exemple #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");
        }
        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;
        }
        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);
        }
        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;
        }
        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);
        }