Skip to content

Commit

Permalink
Refactor UI and DialogService code
Browse files Browse the repository at this point in the history
Removed the usage of ColumnSpan property in SearchResult.xaml as it was not needed. In DialogServiceExtensions.cs, tidied up the syntax when initializing a new DialogParameters object. These refactorings enhance code readability.
  • Loading branch information
DineshSolanki committed Dec 21, 2023
1 parent ca1c3ac commit 758fe70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FoliCon/Modules/Extension/DialogServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void ShowPosterPicker(this IDialogService dialogService, Tmdb tmdb
public static void ShowPreviewer(this IDialogService dialogService, Action<IDialogResult> callBack)
{
Logger.Trace("ShowPreviewer called");
var p = new DialogParameters {};
var p = new DialogParameters();
dialogService.ShowDialog("Previewer", p, callBack);
}
}
2 changes: 1 addition & 1 deletion FoliCon/Views/SearchResult.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Grid.ColumnSpan="1" Content="{extension:Lang Key={x:Static langs:LangKeys.ShowMore}}" HorizontalAlignment="Stretch" Margin="0,5,0,5" Command="{Binding MouseDoubleClickCommand}" IsEnabled="{Binding Path=SelectedItem.(data:ListItem.Poster), ElementName=ListViewResult, Converter={StaticResource Object2BooleanConverter}}" ToolTip="{extension:Lang Key={x:Static langs:LangKeys.SeeMorePosters}}">
<Button Grid.Column="0" Content="{extension:Lang Key={x:Static langs:LangKeys.ShowMore}}" HorizontalAlignment="Stretch" Margin="0,5,0,5" Command="{Binding MouseDoubleClickCommand}" IsEnabled="{Binding Path=SelectedItem.(data:ListItem.Poster), ElementName=ListViewResult, Converter={StaticResource Object2BooleanConverter}}" ToolTip="{extension:Lang Key={x:Static langs:LangKeys.SeeMorePosters}}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource ButtonInfo}">
<Style.Triggers>
Expand Down

0 comments on commit 758fe70

Please sign in to comment.