Browse Source

bubble on first run

Luke Pulverenti 12 years ago
parent
commit
cfde6c10e6
2 changed files with 14 additions and 2 deletions
  1. 11 2
      MediaBrowser.ServerApplication/MainWindow.xaml.cs
  2. 3 0
      MediaBrowser.sln

+ 11 - 2
MediaBrowser.ServerApplication/MainWindow.xaml.cs

@@ -48,9 +48,13 @@ namespace MediaBrowser.ServerApplication
         /// <summary>
         /// <summary>
         /// Initializes a new instance of the <see cref="MainWindow" /> class.
         /// Initializes a new instance of the <see cref="MainWindow" /> class.
         /// </summary>
         /// </summary>
-        /// <param name="jsonSerializer">The json serializer.</param>
-        /// <param name="logger">The logger.</param>
+        /// <param name="logManager">The log manager.</param>
         /// <param name="appHost">The app host.</param>
         /// <param name="appHost">The app host.</param>
+        /// <param name="configurationManager">The configuration manager.</param>
+        /// <param name="userManager">The user manager.</param>
+        /// <param name="libraryManager">The library manager.</param>
+        /// <param name="jsonSerializer">The json serializer.</param>
+        /// <param name="displayPreferencesManager">The display preferences manager.</param>
         /// <exception cref="System.ArgumentNullException">logger</exception>
         /// <exception cref="System.ArgumentNullException">logger</exception>
         public MainWindow(ILogManager logManager, IApplicationHost appHost, IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, IDisplayPreferencesManager displayPreferencesManager)
         public MainWindow(ILogManager logManager, IApplicationHost appHost, IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, IDisplayPreferencesManager displayPreferencesManager)
         {
         {
@@ -95,6 +99,11 @@ namespace MediaBrowser.ServerApplication
             LoadLogWindow(null, EventArgs.Empty);
             LoadLogWindow(null, EventArgs.Empty);
             _logManager.LoggerLoaded += LoadLogWindow;
             _logManager.LoggerLoaded += LoadLogWindow;
             _configurationManager.ConfigurationUpdated += Instance_ConfigurationUpdated;
             _configurationManager.ConfigurationUpdated += Instance_ConfigurationUpdated;
+
+            if (_appHost.IsFirstRun)
+            {
+                Dispatcher.InvokeAsync(() => MbTaskbarIcon.ShowBalloonTip("Media Browser", "Welcome to Media Browser Server!", Hardcodet.Wpf.TaskbarNotification.BalloonIcon.None));
+            }
         }
         }
 
 
         /// <summary>
         /// <summary>

+ 3 - 0
MediaBrowser.sln

@@ -173,4 +173,7 @@ Global
 	GlobalSection(SolutionProperties) = preSolution
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 		HideSolutionNode = FALSE
 	EndGlobalSection
 	EndGlobalSection
+	GlobalSection(Performance) = preSolution
+		HasPerformanceSessions = true
+	EndGlobalSection
 EndGlobal
 EndGlobal