예제 #1
0
 private void AddPosition_Clicked(object sender, RoutedEventArgs e)
 {
     positionModel.NewPosition          = new Position();
     positionModel.NewPosition.JobTitle = NewPosition.Text;
     sqlConnections.AddPosition(positionModel.NewPosition.JobTitle);
     this.Close();
 }
예제 #2
0
        private void AddPosition_Clicked(object sender, RoutedEventArgs e)
        {
            SQLConnections sqlConnections = new SQLConnections();
            string         newPosition    = NewPosition.Text;

            sqlConnections.AddPosition(newPosition);
            int position = sqlConnections.FindPositionID(newPosition);

            this.Close();
            //@@identityscope
        }