Exemplo n.º 1
0
 public Kernel.Domain.CellPropertyAllocationData FillAllocationData()
 {
     this.AllocationPanel.FillAllocationData();
     this.CellAllocationData        = this.AllocationPanel.AllocationData;
     this.CellAllocationData.active = this.ActivateAllocationCheckBox.IsChecked.Value;
     this.AllocationForm.fillObject();
     this.CellAllocationData.allocationTree = this.AllocationForm.EditedObject;
     return(CellAllocationData);
 }
Exemplo n.º 2
0
        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;
        }