/// <summary>
 /// Starts the generation emulation.
 /// </summary>
 /// <param name='generation'>
 /// Generation.
 /// </param>
 public static void StartGenerationEmulation(SHDeviceGeneration generation)
 {
     s_emulatedDeviceGeneration = generation;
     IsEmulatingGeneration = true;
 }
    private bool IsCurrentDevicenOnList(SHDeviceGeneration[] list)
    {
        if (list != null)
        {
            var currentGeneration = SHDevice.Generation;

            foreach (var i in list)
            {
                if (currentGeneration == i)
                {
                    return true;
                }
            }
        }
        return false;
    }
Exemple #3
0
 /// <summary>
 /// Starts the generation emulation.
 /// </summary>
 /// <param name='generation'>
 /// Generation.
 /// </param>
 public static void StartGenerationEmulation(SHDeviceGeneration generation)
 {
     s_emulatedDeviceGeneration = generation;
     IsEmulatingGeneration      = true;
 }