コード例 #1
0
        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();
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: uQlust/uQlust-ver1.0
        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();
            }
        }