Exemplo n.º 1
0
 void initstack()
 {
     for (int i = 0; i < _source.Chapters.Count; i++)
     {
         ControlDownElement elem = new ControlDownElement();
         elem.Index  = i;
         elem.Source = _source.Chapters[i];
         elem.ControlDownElementSelected += ControlDown_ElementSelected;
         _mainpanel.Children.Add(elem);
         _elements.Add(elem);
         if (i == 0)
         {
             elem.Select();
         }
     }
     _iscomponentinit = true;
 }
Exemplo n.º 2
0
 void initstack()
 {
     for (int i = 0; i < _source.Chapters.Count; i++)
     {
         ControlDownElement elem = new ControlDownElement();
         elem.Index = i;
         elem.Source = _source.Chapters[i];
         elem.ControlDownElementSelected += ControlDown_ElementSelected;
         _mainpanel.Children.Add(elem);
         _elements.Add(elem);
         if (i == 0) elem.Select();
     }
     _iscomponentinit = true;
 }