Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }