create EncryptionManager UI
MODIFY
WalletWasabi.Gui/Icons/Icons.xaml
WalletWasabi.Gui/Icons/Icons.xaml
</DrawingGroup.Children>
</DrawingGroup>
+ <DrawingGroup x:Key="EncryptionManager">
+ <DrawingGroup.Children>
+ <GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
+ <GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M8,0C3.589,0 0,3.589 0,8 0,12.411 3.589,16 8,16 12.411,16 16,12.411 16,8 16,3.589 12.411,0 8,0" />
+ <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1M14,8C14,11.309 11.309,14 8,14 4.691,14 2,11.309 2,8 2,4.691 4.691,2 8,2 11.309,2 14,4.691 14,8" />
+ <GeometryDrawing Brush="#FF1BA1E2" Geometry="F1M7,7.5L9,7.5 9,12 7,12z M7,4L9,4 9,5.5 7,5.5z M8,14C4.691,14 2,11.309 2,8 2,4.691 4.691,2 8,2 11.309,2 14,4.691 14,8 14,11.309 11.309,14 8,14 M8,1C4.14,1 1,4.14 1,8 1,11.859 4.14,15 8,15 11.859,15 15,11.859 15,8 15,4.14 11.859,1 8,1" />
+ </DrawingGroup.Children>
+ </DrawingGroup>
+
<DrawingGroup x:Key="Settings">
<DrawingGroup.Children>
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M0,16L16,16 16,0 0,0z" />

MODIFY
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
@@ -8,6 +8,7 @@ using System.IO;
using System.Linq;
using WalletWasabi.Gui.Tabs.WalletManager;
using WalletWasabi.Gui.Tabs;
+using WalletWasabi.Gui.Tabs.EncryptionManager;
namespace WalletWasabi.Gui.Shell.Commands
{
@@ -21,6 +22,11 @@ namespace WalletWasabi.Gui.Shell.Commands
commandIconService.GetCompletionKindImage("WalletManager"),
ReactiveCommand.Create(OnWalletManager));
+ EncryptionManagerCommand = new CommandDefinition(
+ "Encryption Manager",
+ commandIconService.GetCompletionKindImage("EncryptionManager"),
+ ReactiveCommand.Create(OnEncryptionManager));
+
SettingsCommand = new CommandDefinition(
"Settings",
commandIconService.GetCompletionKindImage("Settings"),
@@ -45,9 +51,18 @@ namespace WalletWasabi.Gui.Shell.Commands
}
}
+ private void OnEncryptionManager()
+ {
+ var encryptionManagerViewModel = IoC.Get<IShell>().GetOrCreate<EncryptionManagerViewModel>();
+ encryptionManagerViewModel.SelectSignMessage();
+ }
+
[ExportCommandDefinition("Tools.WalletManager")]
public CommandDefinition WalletManagerCommand { get; }
+ [ExportCommandDefinition("Tools.EncryptionManager")]
+ public CommandDefinition EncryptionManagerCommand { get; }
+
[ExportCommandDefinition("Tools.Settings")]
public CommandDefinition SettingsCommand { get; }
}

MODIFY
WalletWasabi.Gui/Shell/MainMenu/ToolsMainMenuItems.cs
WalletWasabi.Gui/Shell/MainMenu/ToolsMainMenuItems.cs
@@ -30,6 +30,11 @@ namespace WalletWasabi.Gui.Shell.MainMenu
[DefaultGroup("Wallet")]
public IMenuItem GenerateWallet => _menuItemFactory.CreateCommandMenuItem("Tools.WalletManager");
+ [ExportMainMenuItem("Tools", "EncryptionManager")]
+ [DefaultOrder(0)]
+ [DefaultGroup("Wallet")]
+ public IMenuItem SignMessage => _menuItemFactory.CreateCommandMenuItem("Tools.EncryptionManager");
+
[ExportMainMenuDefaultGroup("Tools", "Settings")]
[DefaultOrder(1000)]
public object SettingsGroup => null;

create EncryptionManager UI