Esempio n. 1
0
 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";
 }
Esempio n. 2
0
        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";
        }
Esempio n. 3
0
        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";
        }
Esempio n. 4
0
 private void loadSystemList()
 {
     this.comboBox1.DataSource    = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "SYSTEMS", "SystemName");
     this.comboBox1.DisplayMember = "SystemName";
     this.comboBox1.ValueMember   = "SystemId";
 }
Esempio n. 5
0
 private void loadFormats()
 {
     this.comboFormat.DataSource    = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "GenhFormats", "GenhFormatDescription");
     this.comboFormat.DisplayMember = "GenhFormatDescription";
     this.comboFormat.ValueMember   = "GenhFormatId";
 }
Esempio n. 6
0
 private void loadCoefficientTypes()
 {
     this.cbCoefficientType.DataSource    = SqlLiteUtil.GetSimpleDataTable(DB_PATH, "CoefficientTypes", "CoefficientTypeId");
     this.cbCoefficientType.DisplayMember = "CoefficientDescription";
     this.cbCoefficientType.ValueMember   = "CoefficientTypeId";
 }