private void Import_Click(object sender, EventArgs e)
        {
            var screen = new OpenFileDialog();

            screen.ShowDialog();

            GcUnit.DataSource = ExcelDataBase.OpenFile(screen.FileName);
        }
        private void Import_Click(object sender, EventArgs e)
        {
            //Open dialog to select the file to import
            var screen = new OpenFileDialog();

            screen.ShowDialog();

            GcSupplier.DataSource = ExcelDataBase.OpenFile(screen.FileName);
        }
Exemple #3
0
        private async Task InitData()
        {
            await Excel.Init();

            ExcelDataBase.DumpDish();
            ExcelDataBase.DumpSupplier();
            ExcelDataBase.DumpMaterial();
            //GetProducerList();
        }