Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            IOFile counter = new IOFile();

            if (counter.GetFilmByName(textBox1.Text))
            {
                label1.Text = "We have " + textBox1.Text.ToUpperInvariant() + "  film";
            }
            else
            {
                label1.Text = "We do not have " + textBox1.Text.ToUpperInvariant() + "  film";
            }
        }