Ejemplo n.º 1
0
 /// <summary>
 ///     Add the StepLabel to the parent
 /// </summary>
 /// <param name="newParent"></param>
 protected override void SwitchParent(Surface newParent)
 {
     if (newParent == Parent)
     {
         return;
     }
     ((Surface)Parent)?.RemoveStepLabel(this);
     base.SwitchParent(newParent);
     if (newParent == null)
     {
         return;
     }
     // Make sure the counter start is restored (this unfortunately happens multiple times... -> hack)
     newParent.CounterStart = _counterStart;
     newParent.AddStepLabel(this);
 }
Ejemplo n.º 2
0
 public StepLabelContainer(Surface parent) : base(parent)
 {
     parent.AddStepLabel(this);
     InitContent();
     Init();
 }