Exemple #1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog opf = new OpenFileDialog();

            opf.ShowDialog();
            if (string.IsNullOrWhiteSpace(opf.FileName))
            {
                return;
            }
            IExcelAlgo dataList = new StudentDataList(opf.FileName);

            dataGridView1.DataSource = await dataList.Load();
        }