diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-16 12:06:36 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-16 12:06:36 +0300 |
| commit | 9dbb8f8eb3d07ee07cf7ce1beab72df056e157c6 (patch) | |
| tree | cd5ace2339d8f3f4a4b92381843497d4f6b21301 /Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | |
| parent | a3aedf6ba1e0f9cc65877c88f66af6f330484086 (diff) | |
| download | Tango-9dbb8f8eb3d07ee07cf7ce1beab72df056e157c6.tar.gz Tango-9dbb8f8eb3d07ee07cf7ce1beab72df056e157c6.zip | |
New Implementation of PPC WiFI networks management!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs index db9ee3863..2d0ac96fa 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -108,14 +108,19 @@ namespace Tango.PPC.UI.PPCApplication /// <summary> /// Called when the main window content has been rendered /// </summary> - private async void OnMainWindowContentRendered() + private void OnMainWindowContentRendered() { LogManager.Log("Main window content rendered."); - PPCSettings settings = null; - ContentRendered?.Invoke(this, new EventArgs()); + StartApplication(); + } + + private async void StartApplication() + { + PPCSettings settings = null; + await Task.Factory.StartNew(() => { LogManager.Log("Reading PPC settings..."); @@ -154,14 +159,14 @@ namespace Tango.PPC.UI.PPCApplication } else { - OnDbInitialized(); + PostDbInitialize(); } } /// <summary> /// Called when the database has been initialized /// </summary> - private void OnDbInitialized() + private void PostDbInitialize() { LogManager.Log($"Raising {nameof(ApplicationStarted)} event..."); |
