private void btnSave_Click(object sender, System.EventArgs e) { saveFileDialog.FileName = this.txtSettingsPath.Text; saveFileDialog.Filter = "Shortcut Settings File (*.xml)|*.xml"; if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { _handler.Write(saveFileDialog.FileName); this.txtSettingsPath.Text = saveFileDialog.FileName; this.openFileDialog.FileName = saveFileDialog.FileName; } }