Пример #1
0
 private void SetControl(WidgetBaseFrame ctrl)
 {
     m_ctrl = ctrl;
     if (ConnPack != null)
     {
         m_ctrl.ConnPack = ConnPack;
     }
     m_ctrl.LoadWidgetData(m_appobj);
 }
Пример #2
0
 internal void Dispose()
 {
     if (ctrl != null)
     {
         ctrl.Dispose();
         ctrl   = null;
         widget = null;
     }
 }
Пример #3
0
 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;
     }
 }