diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-06-06 09:05:47 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-06-06 09:05:47 +0300 |
| commit | 755fe04412ec5ae662636863167cc43a5f5e238b (patch) | |
| tree | d84090030660d0e61a83a059d34025c4d7b2d334 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels | |
| parent | 0a676ae5a1f062f69729cbc3627b51f2b8ffc73b (diff) | |
| parent | 84d65adce5e6c24308cf49f6c943a14e13ad31d1 (diff) | |
| download | Tango-755fe04412ec5ae662636863167cc43a5f5e238b.tar.gz Tango-755fe04412ec5ae662636863167cc43a5f5e238b.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs index df4a9c8e2..37940b2f8 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs @@ -25,23 +25,6 @@ namespace Tango.PPC.UI.ViewModels public async override void OnApplicationStarted() { await Task.Delay(500); - - //TODO: Use this in the future. - - //#if DEBUG - // DataSource = "localhost\\SQLEXPRESS"; - //#else - // DataBaseSettings.DefaultDataSource = Path.Combine(PathHelper.GetUserTangoFolder(), "DB", "Tango.db"); - //#endif - - CoreSettings.DefaultDataBaseSource = Path.Combine(PathHelper.GetUserTangoFolder(), "DB", "Tango.db"); - - if (!File.Exists(CoreSettings.DefaultDataBaseSource)) - { - Directory.CreateDirectory(Path.GetDirectoryName(CoreSettings.DefaultDataBaseSource)); - File.Copy(Path.Combine(PathHelper.GetStartupPath(), "DB", "Tango.db"), CoreSettings.DefaultDataBaseSource); - } - NavigationManager.NavigateTo(NavigationView.LayoutView); NavigationManager.NavigateTo(NavigationView.JobsView); } |
