Esempio n. 1
0
        public void ImportRoute()
        {
            var openFile = new OpenFileModel();

            openFile.CheckFileExists  = true;
            openFile.InitialDirectory = Settings.DataPath;
            openFile.Filter           = "ttt files|*.ttt|All Files|*.*";
            openFile.Title            = "Open exported database file";
            var path = FileIOHelper.GetOpenFileName(openFile);

            if (path.Length > 0)
            {
                var importRoute = new ImportRouteDataAccess(path);
                RouteList = new BindableCollection <RouteModel>(RouteDataAccess.GetAllRoutes());
                NotifyOfPropertyChange(() => RouteList);
            }
        }
Esempio n. 2
0
 public static void DemoDataSetup()
 {
     var importHH  = new ImportRouteDataAccess("SQL\\HH-testset.ttt");
     var importWSR = new ImportRouteDataAccess("SQL\\WSR-testset.ttt");
 }