Files
spark/src/client/spark/Modules/Support/SupportShellModule.cs
T

57 lines
1.5 KiB
C#

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;
using System.Reactive.Linq;
using static mbts.ui.shell.ProtoBufSerializationHelper;
namespace bts.shell {
[Export(typeof(IShellModule))]
class HelpShellModule : IShellModule {
[ImportingConstructor]
public HelpShellModule(IBus bus) {
_awf = new ActivityWindowFactory(this, bus);
_bwf = new BrowserWindowFactory(this, bus);
}
ActivityWindowFactory _awf;
BrowserWindowFactory _bwf;
public ImageSource icon => Icons.Support;
public string name => "Help";
public int priority => 50;
public IEnumerable<SparkCommand> actions => new[] {
//SparkCommands.ShowManual,
//SparkCommands.ShowAuditLogs,
//SparkCommands.ShowDiagnostics,
SparkCommands.ShowReportIssue.complete("Created from launcher"),
// SparkCommands.ShowReleaaseNotes,
SparkCommands.ShowActivityLog,
SparkCommands.ShowManual,
SparkCommands.ShowAboutSpark,
};
public Task<IShellWindow> create(Stream load_stream) {
return dispatch_to_factory(load_stream, _awf, _bwf);
}
public void Dispose() {
Disposable.dispose(ref _awf);
Disposable.dispose(ref _bwf);
}
}
}