public void Display(StructuredReportColumn column) { throwChange = false; this.Column = column; if (this.Column == null) { this.Column = GetNewColumn(); } String colName = Kernel.Util.RangeUtil.GetColumnName(this.Column.position); ColumnTextBox.Text = colName; TypeTextBox.Text = this.Column.type != null ? this.Column.type : ""; NameTextBox.Text = this.Column.name != null ? this.Column.name : ""; CellRefTextBox.Text = this.Column.cellRef != null ? this.Column.cellRef : ""; FreeTextBox.Text = this.Column.freeText != null ? this.Column.freeText : ""; LoopTextBox.Text = this.Column.loop != null ? this.Column.loop.name : ""; StartAtTextBox.Text = this.Column.incrementalStart.HasValue ? this.Column.incrementalStart.Value.ToString() : "1"; ShowCheckBox.IsChecked = this.Column.show; DisplaySpecial(this.Column.type); DisplayPeriodFormula(this.Column.type, this.Column.loop); PeriodFormulaNumberValueTextBox.Text = this.Column.periodFormulaNumber.HasValue ? this.Column.periodFormulaNumber.Value.ToString() : Kernel.Util.TagFormulaUtil.isSyntaxeFormulaCorrectly(this.Column.periodFormula) ? this.Column.periodFormula : ""; this.PeriodFormulaOperationComboBox.SelectedItem = string.IsNullOrEmpty(this.Column.periodFormulaOperation) ? Operation.PLUS.sign : this.Column.periodFormulaOperation; this.PeriodFormulaGranulartityComBox.SelectedItem = string.IsNullOrEmpty(this.Column.periodFormulaGranularity) ? Granularity.WEEK.name : this.Column.periodFormulaGranularity; ItemForm.Display(this.Column); this.ModifyThisColumn = false; throwChange = true; }