コード例 #1
0
ファイル: TrainingData.cs プロジェクト: CHSPhani/ECSAStudyV1
        public TrainingData(MySqlConnection conn) : this()
        {
            this.conn = conn;
            //application area
            foreach (string s in MasterDataAccess.GetValueSetForATable("applicationarea", "aaName", conn))
            {
                cmbAArea.Items.Add(s);
            }
            //blockchain network
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCNetworks", "bcnName", conn))
            {
                cmbBcType.Items.Add(s);
            }
            //Network participation
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCNWParticipation", "bcnpName", conn))
            {
                cmbNwPart.Items.Add(s);
            }
            //Consensus
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCConsensus", "bccName", conn))
            {
                cmbConsensus.Items.Add(s);
            }
            //Scalability
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCScalability", "bcsName", conn))
            {
                cmbScalability.Items.Add(s);
            }
            //Latency
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCLatency", "bclName", conn))
            {
                cmbLatency.Items.Add(s);
            }
            //Performance
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCPerformance", "bcprName", conn))
            {
                cmbPerf.Items.Add(s);
            }
            // Data Access
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCDataAccess", "bcdaName", conn))
            {
                cmbDataAccess.Items.Add(s);
            }
            //Data Access Policy
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCDataAccessPolicy", "bcdapName", conn))
            {
                cmbDap.Items.Add(s);
            }
            //Data format
            foreach (string s in MasterDataAccess.GetValueSetForATable("BCDataFormat", "bcdfName", conn))
            {
                cmbDataFormat.Items.Add(s);
            }
            //Arch Style
            foreach (string s in MasterDataAccess.GetValueSetForATable("ArchitectureStyle", "asName", conn))
            {
                cmbAs.Items.Add(s);
            }

            //NFR in ARchitecture
            foreach (string s in MasterDataAccess.GetValueSetForATable("NFRsInArchitecture", "nfrasName", conn))
            {
                cmbAsNFR.Items.Add(s);
            }
            //Data Storage Platform
            foreach (string s in MasterDataAccess.GetValueSetForATable("DataStorageSystems", "dsName", conn))
            {
                cmbDS.Items.Add(s);
            }
            //Blockchain platform
            foreach (string s in MasterDataAccess.GetValueSetForATable("BlockchainPlatforms", "bpName", conn))
            {
                cmbBcPlat.Items.Add(s);
            }
            //Results Obtained
            foreach (string s in MasterDataAccess.GetValueSetForATable("resultsobtained", "rsName", conn))
            {
                cmbarFeatures.Items.Add(s);
            }
        }