Пример #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);
        }
Пример #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);
        }