private void otherToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = CheckProfilesExist(); RankingCForm km; if (manager.opt.clusterAlgorithm != null && manager.opt.clusterAlgorithm.Count > 0) { km = new RankingCForm(manager.opt.other, manager.opt.clusterAlgorithm[0], flag, (INPUTMODE)comboBox1.SelectedItem, GetAlignedProfiles()); } else { km = new RankingCForm(manager.opt.other, ClusterAlgorithm.Jury1D, flag, (INPUTMODE)comboBox1.SelectedItem, GetAlignedProfiles()); } DialogResult res = km.ShowDialog(); if (res == DialogResult.OK) { manager.opt.other = km.localObj; manager.opt.clusterAlgorithm.Clear(); manager.opt.clusterAlgorithm.Add(km.alg); Run(); } }
private void otherToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = CheckProfilesExist(); RankingCForm km; if (manager.opt.clusterAlgorithm != null && manager.opt.clusterAlgorithm.Count > 0) km = new RankingCForm(manager.opt.other,manager.opt.clusterAlgorithm[0],flag,(INPUTMODE)comboBox1.SelectedItem,GetAlignedProfiles()); else km = new RankingCForm(manager.opt.other, ClusterAlgorithm.Jury1D, flag, (INPUTMODE)comboBox1.SelectedItem,GetAlignedProfiles()); DialogResult res = km.ShowDialog(); if (res == DialogResult.OK) { manager.opt.other = km.localObj; manager.opt.clusterAlgorithm.Clear(); manager.opt.clusterAlgorithm.Add(km.alg); Run(); } }