Example #1
0
        public void InitPadControl()
        {
            var dv = new System.Data.DataView();

            // Show disabled images by default.
            _Imager.SetImages(false);
            // Add player index to combo boxes
            var playerOptions = new List <KeyValuePair>();
            var playerTypes   = (UserIndex[])Enum.GetValues(typeof(UserIndex));

            foreach (var item in playerTypes)
            {
                playerOptions.Add(new KeyValuePair(item.ToString(), ((int)item).ToString()));
            }
            PadListPanel.UpdateFromCurrentGame();
            // Update emulation type.
            var game         = SettingsManager.CurrentGame;
            var showAdvanced = game != null && game.EmulationType == (int)EmulationType.Library;

            PadItemPanel.ShowTab(showAdvanced, PadItemPanel.AdvancedTabPage);
        }
Example #2
0
 public void ShowAdvancedTab(bool show)
 => PadItemPanel.ShowTab(show, PadItemPanel.AdvancedTabPage);