Ejemplo n.º 1
0
        private void buttonRestorePhieuMuon_Click(object sender, EventArgs e)
        {
            ChoMuonSachManager choMuonSachManager = new ChoMuonSachManager();
            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;
                choMuonSachManager.saveListPhieuMuonSach(excelHelper.GetListPhieuMuonSachFromExcel(path));
            }
        }
Ejemplo n.º 2
0
        private void buttonBackupPhieuMuon_Click(object sender, EventArgs e)
        {
            ChoMuonSachManager choMuonSachManager = new ChoMuonSachManager();

            xmlGenerate.GenerateFromXML(choMuonSachManager.layds());
        }