private void SaveGestureSVMButton_Click(object sender, EventArgs e) { SaveFileDialog dialog = new SaveFileDialog(); dialog.InitialDirectory = Path.GetFullPath("savedProfiles"); dialog.DefaultExt = ".svm"; dialog.Filter = "SVM Files|*.svm"; dialog.OverwritePrompt = true; if (dialog.ShowDialog(this) == DialogResult.OK) { GestureRecognition.SaveClassifier(dialog.FileName); Logging.LogOtherEvent("Save Gesture SVM: " + dialog.FileName); } }