Launcher menu structure looks right
This commit is contained in:
1 parent
27b66cac06
commit
800f87fca7
12 files changed
+139
-206
No files matched your search
@@ -1,12 +1,49 @@
|
||||
using System;
|
||||
using mbts.ui;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using bts.spark;
|
||||
using System.IO;
|
||||
using System.Windows.Media;
|
||||
using bts.api;
|
||||
using mbts;
|
||||
using mbts.spark;
|
||||
|
||||
namespace bts.Modules.Support
|
||||
{
|
||||
class SupportShellModule
|
||||
{
|
||||
}
|
||||
namespace bts.Modules.Support {
|
||||
[Export(typeof(IShellModule))]
|
||||
class SupportShellModule : IShellModule {
|
||||
IDisposable _dispose;
|
||||
|
||||
[ImportingConstructor]
|
||||
public SupportShellModule(IBus bus, IBrowserWindowManager browser) {
|
||||
|
||||
_dispose = Disposable.Create(
|
||||
bus.subscribe(SparkTags.ShowUri).Subscribe(u => browser.Pages.Add(u))
|
||||
);
|
||||
}
|
||||
|
||||
public ImageSource icon => Icons.Support;
|
||||
|
||||
public string name => "Support";
|
||||
|
||||
public int priority => 50;
|
||||
|
||||
public IEnumerable<SparkCommand> actions => new[] {
|
||||
SparkCommands.ShowManual,
|
||||
SparkCommands.ShowAuditLogs,
|
||||
SparkCommands.ShowDiagnostics,
|
||||
SparkCommands.ShowReportIssue,
|
||||
SparkCommands.ShowAboutSpark
|
||||
};
|
||||
|
||||
public Task<IShellWindow> create(Stream load_stream) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user