private static ArticulatedHandPose LoadGesturePose(GestureId gesture, string filePath) { if (!string.IsNullOrEmpty(filePath)) { var pose = new ArticulatedHandPose(); pose.FromJson(File.ReadAllText(filePath)); handPoses.Add(gesture, pose); return(pose); } return(null); }