Example #1
0
        private void button14_Click(object sender, EventArgs e)
        {
            double[] expertTrust = GetExpertTrust();
            int      objCount    = Decimal.ToInt32(objCount1.Value);

            ArrayList expertOpinions = arrayListFromMatrix(rangeTable1, objCount1);

            Method method = new SimpleRange();

            double efficiency = 0;
            Object result;

            method.Execute(expertsCount, expertTrust, expertOpinions, out efficiency, out result);
            int[] resultRange = result as int[];


            rangeResult1.Columns.Clear();

            concordResult1.Text = efficiency.ToString();
            for (int i = 0; i < objCount; i++)
            {
                rangeResult1.Columns.Add("Column" + i.ToString(), "Oб`єкт " + Convert.ToString(i + 1));
                rangeResult1[i, 0].Value = resultRange[i];
            }
        }