private void BtnOK_Click(object sender, EventArgs e) { int[,] t = new int[3, 3]; t[0, 0] = int.Parse(t00.Text); t[0, 1] = int.Parse(t01.Text); t[0, 2] = int.Parse(t02.Text); t[1, 0] = int.Parse(t10.Text); t[1, 1] = int.Parse(t11.Text); t[1, 2] = int.Parse(t12.Text); t[2, 0] = int.Parse(t20.Text); t[2, 1] = int.Parse(t21.Text); t[2, 2] = int.Parse(t22.Text); iw.Filter(t, int.Parse(divider.Text)); Dispose(); Close(); }