Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IOFile counter  = new IOFile();
            string filmName = textBox1.Text;
            string genre    = textBox2.Text;
            int    year     = Convert.ToInt32(textBox3.Text);
            string date     = textBox4.Text;
            int    price    = Convert.ToInt32(textBox5.Text);
            string id       = textBox6.Text;

            counter.WriteFilmToFile(filmName, genre, year, date, price, id);
        }