private void SetControl(WidgetBaseFrame ctrl) { m_ctrl = ctrl; if (ConnPack != null) { m_ctrl.ConnPack = ConnPack; } m_ctrl.LoadWidgetData(m_appobj); }
internal void Dispose() { if (ctrl != null) { ctrl.Dispose(); ctrl = null; widget = null; } }
public virtual void ReplaceControl(IWidget widget) { if (!CanReplaceWith(widget)) { throw new InternalError("DAE-00051 Incompatible widget to replace"); } if (m_ctrl != null) { m_ctrl.SetWidget(widget); ((WidgetBase)widget).SetControl(m_ctrl); m_ctrl = null; } }