diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-05 18:54:19 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-05 18:54:19 +0300 |
| commit | 9c78856e51418bebe66095fecf4c39d9b225e961 (patch) | |
| tree | a0e2b7354a4805448acf229168dae56b6f3b1cd6 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | |
| parent | b1b9ec165cc318caed1fc9b5919a03029b6cb29e (diff) | |
| download | Tango-9c78856e51418bebe66095fecf4c39d9b225e961.tar.gz Tango-9c78856e51418bebe66095fecf4c39d9b225e961.zip | |
Working on PPC !
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); } |
