Warn and succ message.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="WalletWasabi.Gui.Controls.WalletExplorer.PinpadView"
xmlns:controls="clr-namespace:WalletWasabi.Gui.Controls;assembly=WalletWasabi.Gui">
+ <controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" Margin="10">
+ <DockPanel LastChildFill ="True">
+ <controls:NoparaPasswordBox DockPanel.Dock="Top" Margin="4 20">
+ </controls:NoparaPasswordBox>
+ <StackPanel>
+ <Button DockPanel.Dock="Bottom" Margin="4 20" Content ="Send PIN to Device" />
+ <TextBlock Text="{Binding WarningMessage}" Classes="warningMessage" />
+ <TextBlock Text="{Binding SuccessMessage}" Classes="validationMessage" Foreground="Green" />
+ </StackPanel>
- <controls:GroupBox Title="{Binding Title}" BorderThickness="0" Classes="docTabContainer">
<Grid>
+ <Grid.Styles>
+ <Style Selector="Button">
+ <Setter Property="Margin" Value="4" />
+ </Style>
+ </Grid.Styles>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
- <Button Grid.Row="0" Grid.Column="0" Content=" " />
+ <Button Grid.Row="0" Grid.Column="0" Content=" " Command />
<Button Grid.Row="0" Grid.Column="1" Content=" " />
<Button Grid.Row="0" Grid.Column="2" Content=" " />
<Button Grid.Row="1" Grid.Column="0" Content=" " />
<Button Grid.Row="2" Grid.Column="1" Content=" " />
<Button Grid.Row="2" Grid.Column="2" Content=" " />
</Grid>
+ </DockPanel>
</controls:GroupBox>
</UserControl>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml.cs
WalletWasabi.Gui/Controls/WalletExplorer/PinPadView.xaml.cs
@@ -8,7 +8,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public PinPadView()
{
- this.InitializeComponent();
+ InitializeComponent();
}
private void InitializeComponent()

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
+using Avalonia.Threading;
using System;
using System.Collections.Generic;
using System.Reactive.Disposables;
@@ -9,6 +10,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
private CompositeDisposable Disposables { get; set; }
+ /*
+ * 7 8 9
+ * 4 5 6
+ * 1 2 3
+ */
+
public PinPadViewModel(WalletViewModel walletViewModel) : base("Pin Pad", walletViewModel)
{
}
@@ -32,5 +39,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
return base.OnClose();
}
+
+ private void OnException(Exception ex)
+ {
+ SetWarningMessage(ex.ToTypeMessageString());
+ }
}
}

Warn and succ message.