Exemple #1
0
        public void FirstStep(String mName, String mInfo,
                              double elbowRightX, double elbowRightY, double elbowLeftX, double elbowLeftY,
                              double kneeRightX, double kneeRightY, double kneeLeftX, double kneeLeftY,
                              double neckRightX, double neckRightY, double neckLeftX, double neckLeftY,
                              double KneeDistance
                              )
        {
            query = "INSERT INTO adimlar(elbowRightX,elbowRightY,elbowLeftX,elbowLeftY," +
                    "kneeRightX,kneeRightY,kneeLeftX,kneeLeftY," +
                    "neckRightX,neckRightY,neckLeftX,neckLeftY," +
                    "KneeDistance) VALUES('" + elbowRightX + "' ,' " + elbowRightY + "' ,' " + elbowLeftX + "' ,' " + elbowLeftY + "' ,' "
                    + kneeRightX + "' , '" + kneeRightY + "' , '" + kneeLeftX + " ', '" + kneeLeftY + "' ,' "
                    + neckRightX + "' , '" + neckRightY + "' , '" + neckLeftX + " ', '" + neckLeftY + " ', '"
                    + KneeDistance + "'); SELECT SCOPE_IDENTITY()";


            isConnect();


            sqlCmd  = new SqlCommand(query, conn);
            stepID1 = sqlCmd.ExecuteScalar().ToString();

            AddImage aImg = new AddImage();

            query  = "INSERT INTO hareketler(hAdi,hInfo,hAdimSay,AdimIDstart,hImage) VALUES('" + mName + "','" + mInfo + "','" + stepCount + "','" + stepID1 + "',@images ); SELECT SCOPE_IDENTITY()";
            sqlCmd = new SqlCommand(query, conn);
            sqlCmd.Parameters.Add(new SqlParameter("@images", AddImage.images));
            moveID = sqlCmd.ExecuteScalar().ToString();
            stepCount++;
            conn.Close();
        }
Exemple #2
0
        private void button3_Click(object sender, RoutedEventArgs e)
        {
            AddImage img = new AddImage();

            img.Show();
        }