private void saveToXml_Button_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { NurSerializer nurSerializer = new NurSerializer(); nurSerializer.Serialize(hNur); nurSerializer.SaveToFile(saveFileDialog1.FileName); } }
private void saveToXml_Button_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { if (string.IsNullOrEmpty(System.IO.Path.GetExtension(saveFileDialog1.FileName))) { saveFileDialog1.FileName += ".xml"; } NurSerializer nurSerializer = new NurSerializer(); nurSerializer.Serialize(hNur); nurSerializer.SaveToFile(saveFileDialog1.FileName); } }