private void outputOrder_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Title = "Export"; saveFileDialog.Filter = "XML File|*.xml"; saveFileDialog.RestoreDirectory = true; if (saveFileDialog.ShowDialog() == DialogResult.OK) { string path = System.IO.Path.GetFullPath(saveFileDialog.FileName); orderService.Export(path); } }
public static void XmlOut(string xmlFileName) { OrderService.Export(xmlFileName); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { service.Export("../../s.xml"); }
private void btn_export_Click(object sender, EventArgs e) { String path = Interaction.InputBox("请输入导出订单的路径", "输入字符串", "", 100, 100); Service.Export(path); }