Esempio n. 1
0
        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);
        }
Esempio n. 2
0
		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);
		}