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

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-08-12 14:12:59 -04:00
parent 6fe8296266
commit 16593b3350
2 changed files with 10 additions and 21 deletions

View File

@ -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
{
@ -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"))
{
}
}
}
}

View File

@ -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)