public Form1() { InitializeComponent(); service = OrderService.Import("../../s.xml"); orderBindingSource.DataSource = service.OrderList; }
private void btn_import_Click(object sender, EventArgs e) { String path = Interaction.InputBox("请输入导入订单的路径", "输入字符串", "", 100, 100); Service.Import(path); }