diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index f6f05b728..9b6d79286 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -1,12 +1,9 @@ using System; using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Threading.Tasks; +using System.Diagnostics; using System.Windows; -using Microsoft.Shell; using MediaBrowser.Controller; +using Microsoft.Shell; namespace MediaBrowser.ServerApplication { @@ -16,7 +13,7 @@ namespace MediaBrowser.ServerApplication public partial class App : Application, ISingleInstanceApp { private const string Unique = "MediaBrowser3"; - + [STAThread] public static void Main() { @@ -48,6 +45,9 @@ namespace MediaBrowser.ServerApplication public static void OpenDashboard() { + using (Process process = Process.Start("http://localhost:" + Kernel.Instance.Configuration.HttpServerPortNumber + "/mediabrowser/dashboard/index.html")) + { + } } } } diff --git a/MediaBrowser.ServerApplication/MainWindow.xaml.cs b/MediaBrowser.ServerApplication/MainWindow.xaml.cs index a4be37475..b0b942025 100644 --- a/MediaBrowser.ServerApplication/MainWindow.xaml.cs +++ b/MediaBrowser.ServerApplication/MainWindow.xaml.cs @@ -1,19 +1,6 @@ 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.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.Model.Progress; @@ -70,7 +57,9 @@ namespace MediaBrowser.ServerApplication 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)