Fixed WordlistManager V and VM

This commit is contained in:
ruri
2019-12-20 03:37:51 +01:00
parent 29eae427f2
commit 69ebf87626
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
<Label Content="TIP: You can drag and drop files into the window to automatically import multiple lists at once." FontSize="8"/>
</StackPanel>
<ListView x:Name="wordlistListView" Grid.Row="1" Foreground="{DynamicResource ForegroundMain}" Background="Transparent" ItemsSource="{Binding Path=WordlistList}" SelectionMode="Extended" BorderThickness="1" AllowDrop="True" Drop="wordlistListViewDrop">
<ListView x:Name="wordlistListView" Grid.Row="1" Foreground="{DynamicResource ForegroundMain}" Background="Transparent" ItemsSource="{Binding Path=WordlistsCollection}" SelectionMode="Extended" BorderThickness="1" AllowDrop="True" Drop="wordlistListViewDrop">
<!-- Align Headers to the Left -->
<ListView.Resources>
<Style x:Key="GridViewColumnHeaderGripper" TargetType="Thumb">
@@ -22,8 +22,8 @@ namespace OpenBullet.ViewModels
public WordlistManagerViewModel()
{
WordlistsCollection = new ObservableCollection<Wordlist>();
_repo = new LiteDBRepository<Wordlist>("wordlists");
WordlistsCollection = new ObservableCollection<Wordlist>();
}
public Wordlist GetWordlistByName(string name)