Browse Source

Implemented tray icon commands. (Dashboard link currently won't work)

LukePulverenti Luke Pulverenti luke pulverenti 13 years ago
parent
commit
16593b3350

+ 6 - 6
MediaBrowser.ServerApplication/App.xaml.cs

@@ -1,12 +1,9 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
+using System.Diagnostics;
 using System.Windows;
 using System.Windows;
-using Microsoft.Shell;
 using MediaBrowser.Controller;
 using MediaBrowser.Controller;
+using Microsoft.Shell;
 
 
 namespace MediaBrowser.ServerApplication
 namespace MediaBrowser.ServerApplication
 {
 {
@@ -16,7 +13,7 @@ namespace MediaBrowser.ServerApplication
     public partial class App : Application, ISingleInstanceApp
     public partial class App : Application, ISingleInstanceApp
     {
     {
         private const string Unique = "MediaBrowser3";
         private const string Unique = "MediaBrowser3";
-        
+
         [STAThread]
         [STAThread]
         public static void Main()
         public static void Main()
         {
         {
@@ -48,6 +45,9 @@ namespace MediaBrowser.ServerApplication
 
 
         public static void OpenDashboard()
         public static void OpenDashboard()
         {
         {
+            using (Process process = Process.Start("http://localhost:" + Kernel.Instance.Configuration.HttpServerPortNumber + "/mediabrowser/dashboard/index.html"))
+            {
+            }
         }
         }
     }
     }
 }
 }

+ 4 - 15
MediaBrowser.ServerApplication/MainWindow.xaml.cs

@@ -1,19 +1,6 @@
 using System;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Diagnostics;
 using System.Windows;
 using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-
-using MediaBrowser.Common;
 using MediaBrowser.Controller;
 using MediaBrowser.Controller;
 using MediaBrowser.Model.Progress;
 using MediaBrowser.Model.Progress;
 
 
@@ -70,7 +57,9 @@ namespace MediaBrowser.ServerApplication
 
 
         private void cmVisitCT_click(object sender, RoutedEventArgs e)
         private void cmVisitCT_click(object sender, RoutedEventArgs e)
         {
         {
-
+            using (Process process = Process.Start("http://community.mediabrowser.tv/"))
+            {
+            }
         }
         }
 
 
         private void cmExit_click(object sender, RoutedEventArgs e)
         private void cmExit_click(object sender, RoutedEventArgs e)