private void SavePosture(object sender, RoutedEventArgs e)
        {
            string handsConfXML = getHandsXML() + " ";

            var dialog = new FileNameDialog(0);

            if (dialog.ShowDialog() == true)
            {
                string postureName = dialog.ResponseText;

                File.WriteAllText(System.IO.Path.Combine(postureDir, postureName + ".xml"), handsConfXML, System.Text.Encoding.UTF8);
            }
        }
 private void SaveGesture(object sender, RoutedEventArgs e)
 {
     if (rec)
     {
         rec = false;
         btnRecGesture.Content = "Save Gesture";
         File.WriteAllText(System.IO.Path.Combine(gestureDir, gestureName + ".xml"), gestureString, System.Text.Encoding.UTF8);
     }
     else
     {
         var dialog = new FileNameDialog(1);
         if (dialog.ShowDialog() == true)
         {
             gestureName           = dialog.ResponseText;
             btnRecGesture.Content = "Stop Record";
             gestureString         = "";
             rec = true;
         }
     }
 }