private void hierarchicalToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = CheckProfilesExist(); HierarchicalCForm hForm; if (manager.opt.clusterAlgorithm != null && manager.opt.clusterAlgorithm.Count > 0) { hForm = new HierarchicalCForm(manager.opt, manager.opt.clusterAlgorithm[0], (INPUTMODE)comboBox1.SelectedItem, flag, GetAlignedProfiles()); } else { hForm = new HierarchicalCForm(manager.opt, ClusterAlgorithm.uQlustTree, (INPUTMODE)comboBox1.SelectedItem, flag, GetAlignedProfiles()); } DialogResult res = hForm.ShowDialog(); if (res == DialogResult.OK) { manager.opt = hForm.localOpt; manager.opt.clusterAlgorithm.Clear(); manager.opt.clusterAlgorithm.Add(hForm.alg); Run(); } }
private void hierarchicalToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = CheckProfilesExist(); HierarchicalCForm hForm; if(manager.opt.clusterAlgorithm!=null && manager.opt.clusterAlgorithm.Count>0) hForm = new HierarchicalCForm(manager.opt.hierarchical,manager.opt.clusterAlgorithm[0],(INPUTMODE)comboBox1.SelectedItem,flag,GetAlignedProfiles()); else hForm = new HierarchicalCForm(manager.opt.hierarchical, ClusterAlgorithm.uQlustTree, (INPUTMODE)comboBox1.SelectedItem,flag, GetAlignedProfiles()); DialogResult res=hForm.ShowDialog(); if (res == DialogResult.OK) { manager.opt.hierarchical = hForm.localOpt; manager.opt.clusterAlgorithm.Clear(); manager.opt.clusterAlgorithm.Add(hForm.alg); Run(); } }