private void BtnImporterXml_Click(object sender, EventArgs e) { OpenFileDialog slctFichier = new OpenFileDialog(); if (slctFichier.ShowDialog() == DialogResult.OK && slctFichier.CheckFileExists) { _listeCommande = DAL.ImporterXml(slctFichier.FileName); dgvSelectionCommande.DataSource = _listeCommande; } }
private void Btn_importer_Click(object sender, EventArgs e) { DAL.ImporterXml(); }
public FormCommandesBis() { InitializeComponent(); dgvCommandes.SelectionChanged += DgvCommandes_SelectionChanged; btnRechercheOK.Click += BtnRechercheOK_Click; btnImportXML.Click += (object sender, EventArgs e) => _lstCommandes = DAL.ImporterXml(); btnExportXML.Click += (object sender, EventArgs e) => DAL.ExporterXml(_lstCommandes); }
private void BtImport_Click(object sender, EventArgs e) { _listCom = DAL.ImporterXml(); _listCom = DAL.ImporterXmlLinq(); ; }