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

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 12 years ago
parent 6fe8296266
commit 16593b3350

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

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

Loading…
Cancel
Save