Beispiel #1
0
 private GUIDialogMenu BuildDialogSelect(IEnumerable <GUIListItem> list)
 {
     _dlgSelect = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
     _dlgSelect.ResetAllControls();
     _dlgSelect.Reset();
     _dlgSelect.Init();
     _dlgSelect.InitControls();
     _dlgSelect.Process();
     _dlgSelect.SetHeading("Context Menu");
     foreach (GUIListItem item in list)
     {
         _dlgSelect.Add(item);
     }
     return(_dlgSelect);
 }