public void Display(Kernel.Domain.CellProperty cellProperty, bool readOnly = false) { thrawChange = false; bool isNoAllocation = cellProperty.cellAllocationData != null && cellProperty.cellAllocationData.type == Kernel.Domain.CellPropertyAllocationData.AllocationType.NoAllocation.ToString(); this.CellProperty = cellProperty; this.CellTextBox.Text = cellProperty != null ? cellProperty.name : ""; // this.ForAllocationCheckBox.IsChecked = cellProperty != null ? cellProperty.IsForAllocation : false; this.CellMeasurePanel.Display(cellProperty != null ? cellProperty.cellMeasure : null, readOnly); if (reportPeriodPanel != null) { this.reportPeriodPanel.DisplayPeriod(cellProperty != null ? cellProperty.period : null, false, readOnly); } else { this.periodPanel.DisplayPeriod(cellProperty != null ? cellProperty.period : null, false, readOnly); } this.filterScopePanel.DisplayScope((cellProperty != null ? cellProperty.cellScope : null), isNoAllocation, readOnly); // this.allocationPanel.DisplayAllocationData(cellProperty != null ? cellProperty.cellAllocationData : null); thrawChange = true; }
public void Display(Kernel.Domain.CellProperty cellProperty, bool readOnly = false) { thrawChange = false; bool isNoAllocation = cellProperty.cellAllocationData != null && cellProperty.cellAllocationData.type == Kernel.Domain.CellPropertyAllocationData.AllocationType.NoAllocation.ToString(); this.CellProperty = cellProperty; this.CellTextBox.Text = cellProperty != null ? cellProperty.name : ""; this.ForAllocationCheckBox.IsChecked = cellProperty != null ? cellProperty.IsForAllocation : false; this.CellAllocationData = cellProperty != null ? cellProperty.cellAllocationData : null; this.ActivateAllocationCheckBox.IsChecked = CellAllocationData != null ? CellAllocationData.active : true; this.AllocationPanel.DisplayAllocationData(this.CellAllocationData, readOnly); this.AllocationForm.EditedObject = this.CellAllocationData != null ? this.CellAllocationData.allocationTree : null; if (readOnly) { SetReadOnly(readOnly); } this.AllocationForm.displayObject(); thrawChange = true; }