public NESSyncSettingsForm() { InitializeComponent(); SyncSettings = ((NES)Global.Emulator).GetSyncSettings(); DTDB = new DataTableDictionaryBind<string, string>(SyncSettings.BoardProperties); dataGridView1.DataSource = DTDB.Table; comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; comboBox1.Items.AddRange(Enum.GetNames(typeof(NES.NESSyncSettings.Region))); comboBox1.SelectedItem = Enum.GetName(typeof(NES.NESSyncSettings.Region), SyncSettings.RegionOverride); }
public NESSyncSettingsForm() { InitializeComponent(); SyncSettings = ((NES)Global.Emulator).GetSyncSettings(); if ((Global.Emulator as NES).HasMapperProperties) { DTDB = new DataTableDictionaryBind<string, string>(SyncSettings.BoardProperties); dataGridView1.DataSource = DTDB.Table; InfoLabel.Visible = false; } else { BoardPropertiesGroupBox.Enabled = false; dataGridView1.DataSource = null; dataGridView1.Enabled = false; InfoLabel.Visible = true; } RegionComboBox.Items.AddRange(Enum.GetNames(typeof(NES.NESSyncSettings.Region))); RegionComboBox.SelectedItem = Enum.GetName(typeof(NES.NESSyncSettings.Region), SyncSettings.RegionOverride); }