Example #1
0
        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));
            }
        }
Example #2
0
        private void buttonBackupDocGia_Click(object sender, EventArgs e)
        {
            DocGiaManager docGiaManager = new DocGiaManager();

            xmlGenerate.GenerateFromXML(docGiaManager.LayDanhSachDocGia());
        }