private void FillControlsItems() { //_prefillItems = RestQueryApi.QueryPostJsonRaw("systemconfig", "prefill", "getfillitems", null, null).ToDynamicList(); _prefillItems = new dynamic[] {}; ComplexPrefillEditor.Properties.Items.Clear(); ComplexPrefillEditor.Properties.Items.AddRange(ActionHandlers.BuildImageComboBoxItems().ToList()); ComplexValidationErrorEditor.Properties.Items.Clear(); ComplexValidationErrorEditor.Properties.Items.AddRange(ValidationHandlers.BuildImageComboBoxItems().ToList()); ComplexValidationWarningEditor.Properties.Items.Clear(); ComplexValidationWarningEditor.Properties.Items.AddRange(ValidationHandlers.BuildImageComboBoxItems().ToList()); SimpleValidationWarningEditor.Properties.Items.Clear(); SimpleValidationWarningEditor.Properties.Items.AddRange(ValidationWarnings.BuildImageComboBoxItemsString().ToList()); SimpleValidationErrorEditor.Properties.Items.Clear(); SimpleValidationErrorEditor.Properties.Items.AddRange(ValidationErrors.BuildImageComboBoxItemsString().ToList()); DeletingDocumentValidationErrorEditor.Properties.Items.Clear(); DeletingDocumentValidationErrorEditor.Properties.Items.AddRange(ValidationHandlers.BuildImageComboBoxItems().ToList()); SuccessSaveEditor.Properties.Items.Clear(); SuccessSaveEditor.Properties.Items.AddRange(ActionHandlers.BuildImageComboBoxItems().ToList()); FailSaveEditor.Properties.Items.Clear(); FailSaveEditor.Properties.Items.AddRange(ActionHandlers.BuildImageComboBoxItems().ToList()); DeleteDocumentEditor.Properties.Items.Clear(); DeleteDocumentEditor.Properties.Items.AddRange(ActionHandlers.BuildImageComboBoxItems().ToList()); DefaultProcessCredentialsAction.Properties.Items.Clear(); DefaultProcessCredentialsAction.Properties.Items.AddRange(ActionHandlers.BuildImageComboBoxItems().ToList()); }
public override void InspectTransform(Output transform) { Table fileTable = transform.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.ExampleWarning(fileRow.SourceLineNumbers)); return; } this.Core.OnMessage(ValidationErrors.ExampleError()); }
public override void InspectIntermediate(Intermediate output) { foreach (Section section in output.Sections) { Table fileTable = section.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.ExampleWarning(fileRow.SourceLineNumbers)); return; } } this.Core.OnMessage(ValidationErrors.ExampleError()); }
public override void InspectPatch(Output patch) { foreach (SubStorage transform in patch.SubStorages) { // Skip patch transforms. if (transform.Name.StartsWith("#")) { continue; } Table fileTable = transform.Data.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.AnotherExampleWarning(fileRow.SourceLineNumbers)); return; } } this.Core.OnMessage(ValidationErrors.ExampleError()); }