private void button1_Click(object sender, EventArgs e) { BD.InsertMat(textBox1.Text, textBox_Kol.Text); BD.ChangeKlMat(Int32.Parse(textBox_Kol.Text)); this.Close(); }