Ejemplo n.º 1
0
        void Handle(Input.Import Action)
        {
            FileInfo fi = new FileInfo(this.ImportPath);
            ExcelPackage package = new ExcelPackage(fi);
            Importer importer = new Importer();

            importer.Import(package, true);
            this.Message = "The file has been successfully imported!";
            package.Dispose();
        }
Ejemplo n.º 2
0
        protected override void OnData()
        {
            base.OnData();

            Clr clr = new Clr();
            Importer importer = new Importer();

            this.Tables.Data = clr.SelectUserTables().Where(x => x.FullName.Contains(this.Filter));

            foreach (var item in this.Tables) {
                item.Selected = true;
            }
        }