private static void LoadUnspecified(ScreenManagerKernel manager, string path, ScreenDescriptionPlayback screenDescription) { if (manager.ScreenCount == 0) { manager.AddPlayerScreen(); LoadInSpecificTarget(manager, 0, path, screenDescription); } else if (manager.ScreenCount == 1) { LoadInSpecificTarget(manager, 0, path, screenDescription); } else if (manager.ScreenCount == 2) { int target = manager.FindTargetScreen(typeof(PlayerScreen)); if (target != -1) { LoadInSpecificTarget(manager, target, path, screenDescription); } } }
private static void LoadUnspecified(ScreenManagerKernel manager, CameraSummary summary) { if (manager.ScreenCount == 0) { manager.AddCaptureScreen(); LoadInSpecificTarget(manager, 0, summary); } else if (manager.ScreenCount == 1) { LoadInSpecificTarget(manager, 0, summary); } else if (manager.ScreenCount == 2) { int target = manager.FindTargetScreen(typeof(CaptureScreen)); if (target != -1) { LoadInSpecificTarget(manager, target, summary); } } }