Implemented tray icon commands. (Dashboard link currently won't work)
This commit is contained in:
parent
6fe8296266
commit
16593b3350
|
@ -1,12 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Diagnostics;
|
||||||
using System.Data;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using Microsoft.Shell;
|
|
||||||
using MediaBrowser.Controller;
|
using MediaBrowser.Controller;
|
||||||
|
using Microsoft.Shell;
|
||||||
|
|
||||||
namespace MediaBrowser.ServerApplication
|
namespace MediaBrowser.ServerApplication
|
||||||
{
|
{
|
||||||
|
@ -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"))
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user