Beispiel #1
0
 void fillSettings()
 {
     foreach (XtraTabPage tabPage in xtraTabControl1.TabPages)
     {
         IOptionsControl ctrl = tabPage.Controls[0] as IOptionsControl;
         if (ctrl != null)
         {
             ctrl.Fill();
         }
     }
 }
Beispiel #2
0
 void fillSettings()
 {
     foreach (ImageSourceListItem <IOptionsControl> tabPage in xtraTabControl1.Items)
     {
         IOptionsControl ctrl = tabPage.Value as IOptionsControl;
         if (ctrl != null)
         {
             ctrl.Fill();
         }
     }
     if (xtraTabControl1.Items.Count > 0)
     {
         xtraTabControl1.SelectedIndex = 0;
     }
 }