Почему ошибка в операторе break...плз скажите быстро
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace WindowsFormsApplication8 { public partial class Form1 : Form { SqlConnection conn = new SqlConnection(@"Data Source=VISHAL-PC; Initial Catalog=arif; Integrated security=true"); SqlCommand cmd; SqlDataReader dr; string str; int value1; int value2; int A; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void textBox3_TextChanged(object sender, EventArgs e) { } private void timer1_Tick_1(object sender, EventArgs e) { } private void timer1_Tick_2(object sender, EventArgs e) { { if (textBox1.Text != "" && textBox2.Text != "") { value1 = Convert.ToInt32(textBox1.Text); value2 = Convert.ToInt32(textBox2.Text); textBox3.Text = DateTime.Now.ToString(); str = ""; str = "Insert into kkk values(" + textBox1.Text + "," + textBox2.Text + ",'" + textBox3.Text + "')"; cmd = new SqlCommand(str, conn); conn.Open(); dr = cmd.ExecuteReader(); value1 = value1 + 1; value2 = value2 + 1; textBox1.Text = value1.ToString(); textBox2.Text = value2.ToString(); conn.Close(); } else { break; } } } } }
Что я уже пробовал:
подскажите сайт faast, насколько это возможно..........................