</ListBox.ItemTemplate>\r
</ListBox>\r
\r
- <Button Grid.Row="5" AutomationProperties.Name="{x:Static Properties:Resources.SourceSelection_QueueArchiveRecovery}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" \r
- cal:Message.Attach="[Event Click] = [Action RecoverQueue]" Visibility="{Binding QueueRecoveryArchivesExist, Converter={StaticResource BooleanToVisibilityConverter}}"\r
- Margin="20,15,0,0" Padding="8" HorizontalAlignment="Left" BorderBrush="DarkGray" BorderThickness="0,1,0,0">\r
- <StackPanel Orientation="Horizontal" MinWidth="100">\r
- <Image Source="../Views/Images/Queue.png" Width="32" />\r
- <StackPanel Orientation="Vertical">\r
- <TextBlock Text="{x:Static Properties:Resources.SourceSelection_QueueArchiveRecovery}" VerticalAlignment="Center" Margin="5,0,0,0" />\r
- <TextBlock Text="{x:Static Properties:Resources.SourceSelection_QueueArchiveRecoveryDesc}" VerticalAlignment="Center" Margin="5,0,0,0" />\r
- </StackPanel>\r
- </StackPanel>\r
- </Button>\r
-\r
<!-- Cancel Window -->\r
<StackPanel Grid.Row="7" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,2,10">\r
<Button cal:Message.Attach="[Event Click] = [Action CloseSourceSelection]" Content="Cancel" Padding="8,2" />\r
}
/// <summary>
- /// Looks up a localized string similar to Queue Recovery.
+ /// Looks up a localized string similar to Recover Queue Files.
/// </summary>
public static string SourceSelection_QueueArchiveRecovery {
get {
<value>Open a folder with one or more files.</value>\r
</data>\r
<data name="SourceSelection_QueueArchiveRecovery" xml:space="preserve">\r
- <value>Queue Recovery</value>\r
+ <value>Recover Queue Files</value>\r
</data>\r
<data name="SourceSelection_QueueArchiveRecoveryDesc" xml:space="preserve">\r
<value>A previous queue archive is available. </value>\r
}\r
}\r
\r
+ public bool CanRecoverQueue()\r
+ {\r
+ return this.QueueRecoveryArchivesExist;\r
+ }\r
+\r
public void RecoverQueue()\r
{\r
QueueRecoveryHelper.ResetArchives();\r
<MenuItem Command="{Binding QueueCommand}" CommandParameter="{x:Static menu:QueueCommandParams.ClearSelected}" Header="{x:Static Properties:Resources.QueueView_ClearSelected}" Visibility="{Binding IsQueueShowingInLine, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />\r
<Separator Visibility="{Binding IsQueueShowingInLine, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />\r
<MenuItem Command="{Binding QueueCommand}" CommandParameter="{x:Static menu:QueueCommandParams.Export}" Header="{x:Static Properties:Resources.QueueView_Export}" Visibility="{Binding IsQueueShowingInLine, Converter={StaticResource boolToVisConverter}, ConverterParameter=false}" />\r
+ <Separator />\r
+ <MenuItem x:Name="queueRecoveryMenuItem" Header="{x:Static Properties:Resources.SourceSelection_QueueArchiveRecovery}" cal:Message.Attach="[Event Click] = [Action RecoverQueue]" />\r
+\r
</MenuItem>\r
\r
<MenuItem Header="{x:Static Properties:Resources.MainView_HelpMenu}">\r