diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-06-06 18:24:36 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-06-06 18:24:36 +0300 |
| commit | 0561aaa7f26f42c421fd653f2899c1f7a551efe5 (patch) | |
| tree | 51d413d13150bf82eec04fdf4c7a79f7799b5515 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | |
| parent | 3c3b0df381cd864fc9bc5588d70b697f2c376849 (diff) | |
| parent | 755fe04412ec5ae662636863167cc43a5f5e238b (diff) | |
| download | Tango-0561aaa7f26f42c421fd653f2899c1f7a551efe5.tar.gz Tango-0561aaa7f26f42c421fd653f2899c1f7a551efe5.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs')
| -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); } |
