implement moving between enque and deque list.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -30,6 +30,18 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
QueuedCoins.Coins.Add(coin);
}
});
+
+ DequeueCommand = ReactiveCommand.Create(() =>
+ {
+ var toMove = QueuedCoins.SelectedCoins.ToList();
+
+ foreach (var coin in toMove)
+ {
+ coin.ChangeOwner(AvailableCoins);
+ QueuedCoins.Coins.Remove(coin);
+ AvailableCoins.Coins.Add(coin);
+ }
+ });
}
public CoinListViewModel AvailableCoins

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
<Style Selector="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
- </UserControl.Styles>
-
- <ListBox Items="{Binding Coins}" SelectedItems="{Binding SelectedCoins}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid ColumnDefinitions="40,80,100,600,100,150,Auto">
- <!--<Grid.ToolTip>
+ <Style Selector="ListBoxItem">
+ <Setter Property="ToolTip.Tip">
+ <Setter.Value>
+ <Template>
<StackPanel Gap="4" MaxWidth="800">
<StackPanel Orientation="Horizontal" Gap="4">
<TextBlock Text="Confirmations:" />
<TextBlock Text="{Binding SpentOutputs}" TextWrapping="Wrap" />
</StackPanel>
</StackPanel>
- </Grid.ToolTip>-->
+ </Template>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ <Style Selector="ListBoxItem:selected /template/ ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}" />
+ </Style>
+ <Style Selector="ListBoxItem:selected:focus /template/ ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}" />
+ </Style>
+ </UserControl.Styles>
+
+ <ListBox Items="{Binding Coins}">
+ <ListBox.ItemTemplate>
+ <DataTemplate>
+ <Grid ColumnDefinitions="40,80,100,600,100,Auto">
<CheckBox IsChecked="{Binding IsSelected}" HorizontalAlignment="Center" />
<Path Grid.Column="1" Data="F1 M 23.7501,33.25L 34.8334,44.3333L 52.2499,22.1668L 56.9999,26.9168L 34.8334,53.8333L 19.0001,38L 23.7501,33.25 Z" Fill="#22B14C" Height="16" Width="16" IsVisible="{Binding Confirmed}" Stretch="Fill" />
<TextBlock Grid.Column="2" Text="{Binding AmountBtc}" />
<TextBlock Grid.Column="3" Text="{Binding Label}" />
<TextBlock Grid.Column="4" Text="{Binding PrivacyLevel, Converter={StaticResource PrivacyLevelValueConverter}}" Margin="20 0 0 0" />
- <Button Content="More..." Command="{Binding MoreCommand}" Grid.Column="5" />
- <TextBlock Text="{Binding History}" Grid.Column="6" />
+ <TextBlock Text="{Binding History}" Grid.Column="5" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -41,6 +41,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
this.RaisePropertyChanged(nameof(Confirmed));
});
+
+ History = "Calculate History";
}
public void ChangeOwner(CoinListViewModelBase newOwner)
@@ -68,6 +70,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string Label => _model.Label;
+ public int Height => _model.Height;
+
public int PrivacyLevel
{
get { return _privacyLevel; }

implement moving between enque and deque list.