private void button13_Click(object sender, EventArgs e) { int[,] wnd = new int[, ] { { Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text), Convert.ToInt32(textBox4.Text) }, { Convert.ToInt32(textBox5.Text), Convert.ToInt32(textBox6.Text), Convert.ToInt32(textBox7.Text) }, { Convert.ToInt32(textBox8.Text), Convert.ToInt32(textBox9.Text), Convert.ToInt32(textBox10.Text) } }; imageBox2.Image = logic.Sharpen(sourceImage, wnd); }