protected override void Init() { base.Init(); if (Partitions.Count == 0) { // Make sure the calculated table contains at least one partition: Partition.CreateCalculatedTablePartition(this); } Partitions[0].PropertyChanged += Partition_PropertyChanged; }
protected override void Init() { base.Init(); if (Partitions.Count == 0) { // Make sure the calculated table contains at least one partition (but don't add that to the undo stack): Handler.UndoManager.Enabled = false; Partition.CreateCalculatedTablePartition(this); Handler.UndoManager.Enabled = true; } Partitions[0].PropertyChanged += Partition_PropertyChanged; }