Ejemplo n.º 1
0
        private void BtnInsert_Click(object sender, RoutedEventArgs e)
        {
            // Insert 버튼 클릭 이벤트
            string insertQuery = "INSERT INTO student VALUES (@grade, @cclass, @no, @name, @score)";

            StVM.ExecuteQuery(datagridStudent, insertQuery);
            // insert 후 새로고침한 table 출력
            StVM.SelectView(datagridStudent);
        }