[k]. Cells [m]. Value))
{+ = 1;
}
{= count1;
} (Convert.ToDouble (dataGridView1.Rows [j]. Cells [k]. Value)> Convert.ToDouble (dataGridView6.Rows [k]. Cells [m]. Value))
{+ = 1;
}
{= count2;
}
/* textBox1.AppendText ("");. AppendText (count1.ToString ());. AppendText ("");. AppendText (count2.ToString ());
// textBox1.AppendText ("");
// textBox1.AppendText (dataGridView1.Rows [i]. Cells [k]. Value.ToString ()); */
} [k, 0] = count1; [k, 1] = count2; (count [k, 0]
{+ = (count [k, 1] - count [k, 0]) * (Convert.ToDouble (dataGridView5.Rows [k]. Cells [2]. Value)); p>
}
{= Interval;
} [i, j] = Interval/100;. AppendText ("");. AppendText (Interval.ToString ());
}
}. Rows [i]. Cells [j]. Value = TableOfDisagreementIndex [i, j];
}
}
}
отримання параметрів p і qvoid GetParametrsForDecisiveRule ()
{= Convert.ToDouble (numericUpDown3.Value); = Convert.ToDouble (numericUpDown4.Value);
}
// побудова вирішального правілаvoid GetDecisiveRule (int row, int col)
{flag = false; count = 0; countOfq = 0; countOfp = 0; _row = row; _col = col;. ColumnCount = _col;. RowHeadersVisible = false;. AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; . AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;. RowCount = _row; (int i = 0; i
{= 0; = 0; = 0; (int j = 0; j
{+ = 1; (i! = j)
{(Convert.ToInt32 (dataGridView3.Rows [i]. Cells [j]. Value)
{+ = 1; (Convert.ToInt32 (dataGridView2.Rows [i]. Cells [j]. Value)
{+ = 1;
}
{((count == cols) & (countOfp == 0))
{= true;
}
}
}
{((count == cols) & (countOfq == 0))
{= true;
}
}
}
}. Rows [i]. Cells [0]. Value = flag;
}
} void button2_Click (object sender, EventArgs e)
{(); (); (rows, rows);
}
void button3_Click (object sender, EventArgs e)
{(rows, rows);
} void закритьToolStripMenuItem_Click (object sender, EventArgs e)
{();
} void button6_Click (object sender, EventArgs e)
{(cols);
} void button5_Click (object sender, EventArgs e)
{(rows, 1); ();
} void button4_Click (object sender, EventArgs e)
{();
}
// завантаження таблиці весовvoid button8_Click (object sender, EventArgs e)
{FN; (openFileDialog1.ShowDialog () == DialogResult.OK)
{. InitialDirectory = "G: temp";. Filter = "diag files (*. diag) | *. abs | All files | *. *"; = openFileDialog1.FileName ; My = new Reader (FN);. ReadTable (out tablesWeight, out rows, out cols); = Convert.ToDouble (comboBox1.Text); (rows, cols); (int i = 0; i
{(int j = 0; j
{. Rows [i]. Cells [j]. Value = tablesWeight [i, j];
}
}
}
}
// збереження таблиці весовvoid button7_Click (object sender, EventArgs e)
{FN;. InitialDirectory = "G: temp";. Filter = "diag files (*. diag) | *. abs | All files | *. *"; (saveFileDialog1 . ShowDialog () == DialogResult.OK)
{= saveFileDialog1.FileName;. WriteTable (FN, tablesWeight);
}
}
// завантаження таблиці критеріїв важностіvoid button9_Click (object sender, EventArgs e)
{FN; (openFileDialog1.ShowDialog () == DialogResult.OK)
{. InitialDirectory = "G: temp";. Filter = "diag files (*. diag) | *. abs | All files | *. *"; = openFileDialog1.FileName ; My = new Reader (FN);. ReadTable (out tablesCriterionImportance, out row1, out ...