private void loadCompressionComboBox() { this.cbCompressionLevel.Items.Add(String.Empty); this.cbCompressionLevel.DataSource = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "ZlibCompressionLevels", "CompressionLevelId"); this.cbCompressionLevel.DisplayMember = "CompressionLevelDescription"; this.cbCompressionLevel.ValueMember = "CompressionLevelId"; }
private void loadPresetsComboBox() { this.comboPresets.Items.Add(String.Empty); this.comboPresets.DataSource = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "OffsetFinder", "OffsetFinderFormatName"); this.comboPresets.DisplayMember = "OffsetFinderFormatName"; this.comboPresets.ValueMember = "OffsetFinderId"; }
private void loadSystems() { System.Text.Encoding unicode = System.Text.Encoding.Unicode; DataTable dtEn = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "VgmSystemNames", "SystemName"); DataRow drEn = dtEn.NewRow(); dtEn.Rows.InsertAt(drEn, 0); this.cbSystemEn.DataSource = dtEn; this.cbSystemEn.DisplayMember = "SystemName"; this.cbSystemEn.ValueMember = "SystemName"; DataTable dtJp = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "VgmSystemNames", "SystemName"); DataRow drJp = dtJp.NewRow(); dtJp.Rows.InsertAt(drJp, 0); this.cbSystemJp.DataSource = dtJp; this.cbSystemJp.DisplayMember = "SystemName"; this.cbSystemJp.ValueMember = "SystemName"; }
private void loadSystemList() { this.comboBox1.DataSource = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "SYSTEMS", "SystemName"); this.comboBox1.DisplayMember = "SystemName"; this.comboBox1.ValueMember = "SystemId"; }
private void loadFormats() { this.comboFormat.DataSource = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "GenhFormats", "GenhFormatDescription"); this.comboFormat.DisplayMember = "GenhFormatDescription"; this.comboFormat.ValueMember = "GenhFormatId"; }
private void loadCoefficientTypes() { this.cbCoefficientType.DataSource = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "CoefficientTypes", "CoefficientTypeId"); this.cbCoefficientType.DisplayMember = "CoefficientDescription"; this.cbCoefficientType.ValueMember = "CoefficientTypeId"; }