Пример #1
0
 // Check the state of the panel variable.
 // If it is not set, try to get the panel from
 // the first hoopsnake in the owner.HoopSnakes
 // list that has a non-null panel. If this 
 // is not set either, generate a new panel
 // and initialize it.
 private void SetupPanel() {
     if (panel == null)
     {
         foreach (HSComponent h in m_owner.HoopSnakes)
         {
             if (h.attr.panel != null)
             {
                 panel = h.attr.panel;
                 return;
             }
         }
         panel = new HSCPanel(m_owner);
     }
 }
Пример #2
0
 // Check the state of the panel variable.
 // If it is not set, try to get the panel from
 // the first hoopsnake in the owner.HoopSnakes
 // list that has a non-null panel. If this
 // is not set either, generate a new panel
 // and initialize it.
 private void SetupPanel()
 {
     if (panel == null)
     {
         foreach (HSComponent h in m_owner.HoopSnakes)
         {
             if (h.attr.panel != null)
             {
                 panel = h.attr.panel;
                 return;
             }
         }
         panel = new HSCPanel(m_owner);
     }
 }