示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }