private void buttonRestoreDocGia_Click(object sender, EventArgs e) { DocGiaManager docGiaManager = new DocGiaManager(); OpenFileDialog theDialog = new OpenFileDialog(); theDialog.Title = "Open Excel File"; theDialog.Filter = "Excel files|*.xlsx"; if (theDialog.ShowDialog() == DialogResult.OK) { string path = theDialog.InitialDirectory + theDialog.FileName; docGiaManager.saveListDocGia(excelHelper.GetListDocGiaFromExcel(path)); } }
private void buttonBackupDocGia_Click(object sender, EventArgs e) { DocGiaManager docGiaManager = new DocGiaManager(); xmlGenerate.GenerateFromXML(docGiaManager.LayDanhSachDocGia()); }