Ejemplo n.º 1
0
        private static bool CanBrowseAndDownload(object parameter)
        {
            // Since user will browse, we won't know a priori if ECS ROM is needed.
            var canExecute = ConfigurationCommandGroup.AreRequiredEmulatorPathsValid(false);

            return(canExecute);
        }
Ejemplo n.º 2
0
        private static bool CanLaunch(object parameter)
        {
            var program   = GetProgramDescription(parameter);
            var canLaunch = program != null;

            if (canLaunch)
            {
                canLaunch = (program.Rom != null) && program.Rom.IsValid && ConfigurationCommandGroup.AreRequiredEmulatorPathsValid(program.Features.Ecs == EcsFeatures.Requires);
            }
            return(canLaunch);
        }