protected override ISolver CreateSolver(SolverSettings settings)
 {
     if (!settings.Checked.Any())
     {
         DialogCoordinator.ShowInfoAsync(this,
                                         L10n.Message("Please tag non-skilled nodes by right-clicking them."));
         return(null);
     }
     return(new SteinerSolver(Tree, settings));
 }
예제 #2
0
        protected override async Task <ISolver> CreateSolverAsync(SolverSettings settings)
        {
            if (!settings.Checked.Any())
            {
                // todo "this" as context is not registered when running without window
                await DialogCoordinator.ShowInfoAsync(DialogContext,
                                                      L10n.Message("Please tag non-skilled nodes by right-clicking them."));

                return(null);
            }
            return(new SteinerSolver(Tree, settings));
        }