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)); }
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)); }