Ejemplo n.º 1
0
        public WizPageMultiPlayer()
        {
            InitializeComponent();
            m_skin = Skins.Instance;
            m_setting = GameSetting.Instance;
            m_controllerIds = m_setting.ControllerIds;

            DataGridViewComboBoxColumn colController = dgvPlayers.Columns[1] as DataGridViewComboBoxColumn;
            foreach (string id in m_controllerIds) {
                colController.Items.Add(id);
            }
            dgvPlayers.Rows.Add();
            dgvPlayers.Rows[0].Cells[0].Value = m_setting.DefaultPlayerName;
            if (m_controllerIds.Contains(m_setting.DefaultPlayerControllerId))
                dgvPlayers.Rows[0].Cells[1].Value = m_setting.DefaultPlayerControllerId;

            dgvPlayers.CausesValidation = true;
            dgvPlayers.CellContentClick += new DataGridViewCellEventHandler(dgvPlayers_CellContentClick);
            dgvPlayers.Validating += new CancelEventHandler(dgvPlayers_Validating);

            LoadSkins();
        }
Ejemplo n.º 2
0
 public WizPageGameType()
 {
     InitializeComponent();
     m_skin = Skins.Instance;
     LoadSkin();
 }