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 }