private void button3_Click(object sender, EventArgs e) { if (jury1DSetup1.Enabled) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); if (t != null) { string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); jury1DSetup1.profileName = profileName; } else { MessageBox.Show("Could not create automatic profile"); } } if (distanceControl1.Enabled) { if (distanceControl1.distDef == DistanceMeasures.HAMMING) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE); string profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); distanceControl1.profileName = profileName; } if (distanceControl1.reference) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); distanceControl1.referenceProfile = profileName; } } }
private void button3_Click(object sender, EventArgs e) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); jury1DSetup1.profileName = profileName; }
private void button3_Click(object sender, EventArgs e) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); if (t != null) { string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); userHash1.profRefFile = profileName; userHash1.profRegFile = profileName; distanceControl1.referenceProfile = profileName; if (distanceControl1.distDef == DistanceMeasures.HAMMING) { t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE); profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); distanceControl1.profileName = profileName; } } else { MessageBox.Show("Profile cannot be generated"); } }
public void SaveProfiles(string fileName) { treeProfiles.SaveProfiles(fileName); }