public void GetSum()
{
sum = 0;
for (int j = 0; j < n; j++)
{
for (int i = 0; i < m; i++)
{
if (i % 2 == 0)
{
sum = sum + massive[i, j];
}
}
}
}
public Boolean LoadMassive(string pFileName)
{
if (File.Exists(pFileName))
{
try
{
TextReader tr = File.OpenText(pFileName);
m = Convert.ToInt32(tr.ReadLine());
n = Convert.ToInt32(tr.ReadLine());
massive = new float[m, n];
string line;
for (int i = 0; i < m; i++)
for (int j = 0; j < n; j++)
{
line = tr.ReadLine();
massive[i,j ] = Convert.ToSingle(line);
}
tr.Close();
return true;