Пример #1
0
 /// <summary>
 /// Create empty buttons for the store.  The contents of the buttons will be filled in by HandleSearchResults
 /// </summary>
 private void CreateGridButtons()
 {
     mGridItemButtons.Clear();
     for (int i = 0; i < mBlockSize; i++)
     {
         GuiFrame gridItemFrame = (GuiFrame)mItemGridButtonFrame.Clone();
         Button   button        = gridItemFrame.SelectSingleElement <Button>("GridButton");
         mItemDisplayGrid.AddChildWidget(gridItemFrame, new FixedPosition(0, 0));
         button.Text = "Loading...";
         button.Disable();
         mGridItemButtons.Add(new KeyValuePair <GuiFrame, Button>(gridItemFrame, button));
     }
 }