Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="table"></param>
 public void FillStructuredReport(Misp.Kernel.Domain.StructuredReport report)
 {
     if (report == null)
     {
         return;
     }
     report.name = NameTextBox.Text;
     report.visibleInShortcut     = visibleInShortcutCheckbox.IsChecked.Value;
     groupField.Group.subjectType = Kernel.Domain.SubjectType.STRUCTURED_REPORT.label;
     report.group = groupField.Group;
     FillActiveColumn();
 }
Example #2
0
 public void Display(Misp.Kernel.Domain.StructuredReport report)
 {
     if (report == null)
     {
         return;
     }
     throwEvent            = false;
     this.StructuredReport = report;
     NameTextBox.Text      = this.StructuredReport.name;
     groupField.Group      = this.StructuredReport.group;
     visibleInShortcutCheckbox.IsChecked = report.visibleInShortcut;
     this.ColumnsListBox.ItemsSource     = new ObservableCollection <StructuredReportColumn>(this.StructuredReport.columnListChangeHandler.Items);
     ColumnForms.StructuredReport        = this.StructuredReport;
     throwEvent = true;
 }