private void typeComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            // Register change of position type
            TargetElement before = (TargetElement)Target.Clone();

            SetPositionType((PositionType)typeComboBox.SelectedItem);
            TargetElement after = (TargetElement)Target.Clone();

            if (before.ToXml() != after.ToXml())
            {
                _mManager.RegisterEvent(before, after, Target, "Position Type Change");
            }
        }
 private void pzBox_TextChanged(object sender, EventArgs e)
 {
     if (!_isLLA)
     {
         TargetElement before = (TargetElement)Target.Clone();
         Target.Position.Ics[2] = Convert.ToDouble(pzBox.Text);
         TargetElement after = (TargetElement)Target.Clone();
         if (before.ToXml() != after.ToXml())
         {
             _mManager.RegisterEvent(before, after, Target, "Position (Z) Change");
         }
     }
 }