From 7c3eed797ee98a8419055abe5e440e9284fcabbc Mon Sep 17 00:00:00 2001 From: alcexhim Date: Thu, 14 Aug 2014 11:44:28 -0400 Subject: [PATCH] Add support for StatusBar state (initial, building, solution loaded, debugging) like Visual Studio 2012 --- .../MainWindow.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/MainWindow.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/MainWindow.cs index 0d6c7038..d6f2e1fd 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/MainWindow.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/MainWindow.cs @@ -380,7 +380,23 @@ namespace UniversalEditor.UserInterface.WindowsForms { pnlSolutionExplorer.Solution = mvarCurrentSolution; - if (mvarCurrentSolution == null) return; + if (mvarCurrentSolution == null) + { + AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme theme = (AwesomeControls.Theming.Theme.CurrentTheme as AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme); + if (theme != null) + { + theme.SetStatusBarState(AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme.StatusBarState.Initial); + } + return; + } + else + { + AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme theme = (AwesomeControls.Theming.Theme.CurrentTheme as AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme); + if (theme != null) + { + theme.SetStatusBarState(AwesomeControls.Theming.BuiltinThemes.VisualStudio2012Theme.StatusBarState.SolutionLoaded); + } + } }