CloneInstance() public method

clone BeamSystemParam to one of its subclass according to LayoutMethod
public CloneInstance ( LayoutMethod layoutType ) : BeamSystemParam
layoutType LayoutMethod LayoutMethod
return BeamSystemParam
Ejemplo n.º 1
0
        /// <summary>
        /// layout rule of beam system has changed
        /// </summary>
        /// <param name="layoutMethod">changed method</param>
        private void LayoutRuleChanged(ref LayoutMethod layoutMethod)
        {
            // create BeamSystemParams instance according to changed LayoutMethod
            m_param = m_param.CloneInstance(layoutMethod);

            // raise DataUpdated event
            OnParamsUpdated(new EventArgs());

            // rebind delegate
            m_param.LayoutRuleChanged += new LayoutRuleChangedHandler(LayoutRuleChanged);
        }