private void _print(BodyContext context) { if (!context.RequireParameter("What should be printed?", out var subject)) { return; } context.SetValue("output", subject.Name); }
private void _databaseSearch(BodyContext context) { if (!context.RequireParameter("Which database should I search in?", out var database, context.Databases)) { return; } var allCriterions = context.GetCriterions(database); if (!context.RequireMultiParameter("Which criterions should be used for the database search?", out var selectedCriterions, allCriterions)) { return; } throw new NotImplementedException("Add the real search as a callback to context"); }