public MissingInfoTaskConfigControl(MissingInfoConfiguration config, ViewTemplate viewTemplate) : base(config, true) { _viewTemplate = viewTemplate; InitializeComponent(); _showExampleFieldBox.Visible = Configuration.IncludesField(LexExampleSentence.WellKnownProperties.ExampleSentence); //these are separated to get the long label to show in mono _showExampleLabel.Visible = _showExampleFieldBox.Visible; _showExampleFieldBox.Checked = Configuration.IncludesField(LexExampleSentence.WellKnownProperties.Translation); }
private MissingInfoTask CreateMissingInfoTask(LexEntryRepository repository, string missingInfoField, string label, string longLabel, string description, string remainingCountText, string referenceCountText, ViewTemplate template, string fieldsToShow, string writingSystemsToMatchCommaSeparated) { MissingInfoConfiguration config = MissingInfoConfiguration.CreateForTests(missingInfoField, label, longLabel, description, remainingCountText, referenceCountText, fieldsToShow, writingSystemsToMatchCommaSeparated); return(new MissingInfoTask(config, repository, template, new TaskMemoryRepository())); }