Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            string sorgu = "INSERT INTO Tbl_Dataset(Age,Distance,Friends,Method) VALUES  (@Age,@Distance,@Friends,@Method)";

            cm = new SqlCommand(sorgu, conn);
            cm.Parameters.AddWithValue("@Age", txtBoxAge.Text);
            cm.Parameters.AddWithValue("@Distance", txtBoxDistance.Text);
            cm.Parameters.AddWithValue("@Friends", txtBoxFriends.Text);
            cm.Parameters.AddWithValue("@Method", txtBoxMethod.Text);
            conn.Open();
            cm.ExecuteNonQuery();
            conn.Close();
            TrainForm tf = new TrainForm();

            tf.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void btnTrain_Click(object sender, EventArgs e)
        {
            TrainForm tf = new TrainForm();

            tf.Show();
        }