<UserControl x:Class="MediaAssistant.Controls.ProfileSelector.ProfileSelectorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Converters="clr-namespace:MediaAssistant.Converters" xmlns:Constants="clr-namespace:MediaAssistant.Constants" Width="Auto" Height="Auto">
<UserControl.Resources>
<Converters:ScanOptionToCheckedConverter x:Key="ScanOptionToCheckedConverter" />
<Converters:ParameterEqualityConverter x:Key="ParameterEqualityConverter" />
<DataTemplate x:Key="ScanDirectoryTemplate">
<StackPanel Orientation="Horizontal" Height="24">
<Button Width="24"
Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.DeleteScanFolderCommand}"
CommandParameter="{Binding}"
Content="{StaticResource DeleteFolderImage}" Style="{StaticResource ImageButtonStyle}">
</Button>
<ToggleButton Margin="5,0" Content="{StaticResource Eye16Image}" Style="{StaticResource opacityToggleButton}" IsChecked="{Binding KeepEye, Mode=TwoWay}"/>
<TextBlock VerticalAlignment="Center" Text="{Binding FullPath}"/>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Border Padding="10,30" Background="{StaticResource LightBackground}">
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="10" Text="Profile Name"/>
<ComboBox Margin="0,10,10,10" Width="180" IsEditable="True"
ItemsSource="{Binding DataSource.MediaAssistantEntities.Profiles}"
DisplayMemberPath="Name"
Text="{Binding ProfileName}"/>
</StackPanel>
<StackPanel Orientation="Vertical">
<StackPanel Margin="10,10,10,0" Orientation="Vertical">
<RadioButton GroupName="Scan" Content="Scan My Computer for music and movie"
Command="{Binding ChangeScanOptionCommand}"
CommandParameter="{x:Static Constants:ScanOption.MyComputer}"
IsChecked="{Binding ScanOption, Converter={StaticResource ScanOptionToCheckedConverter}, ConverterParameter={x:Static Constants:ScanOption.MyComputer}, Mode=OneWay}"/>
<TextBlock Margin="16,0" Text="Choose this option if you have stored your music and movie in multiple folder and multiple drive"/>
</StackPanel>
<StackPanel Margin="10,10,10,0" Orientation="Vertical">
<RadioButton GroupName="Scan" Content="Only scan My Documents, My Music and My Video for music and movie"
Command="{Binding ChangeScanOptionCommand}"
CommandParameter="{x:Static Constants:ScanOption.MyDocument}"
IsChecked="{Binding ScanOption, Converter={StaticResource ScanOptionToCheckedConverter}, ConverterParameter={x:Static Constants:ScanOption.MyDocument}, Mode=OneWay}"/>
<TextBlock Margin="16,0" Text="Choose this option if you have stored your music and movie in above folders"/>
</StackPanel>
<StackPanel Margin="10,10,10,0" Orientation="Vertical">
<RadioButton GroupName="Scan" Content="Scan specific folders"
Command="{Binding ChangeScanOptionCommand}"
CommandParameter="{x:Static Constants:ScanOption.SpecificFolder}"
IsChecked="{Binding ScanOption, Converter={StaticResource ScanOptionToCheckedConverter}, ConverterParameter={x:Static Constants:ScanOption.SpecificFolder}, Mode=OneWay}"/>
<TextBlock Margin="16,0" Text="Choose this option if you want to specify the music and movie folder."/>
<StackPanel Margin="0,5,0,5" IsEnabled="{Binding ScanOption, Converter={StaticResource ParameterEqualityConverter}, ConverterParameter=SpecificFolder}">
<ListBox Margin="16,0" Height="120" ItemsSource="{Binding ScannedDirectories}" ItemTemplate="{StaticResource ScanDirectoryTemplate}"/>
<TextBlock Margin="16,5,0,0"><Hyperlink Command="{Binding AddFolderCommand}">Add Folder</Hyperlink></TextBlock>
</StackPanel>
</StackPanel>
<StackPanel Margin="10,10,10,0" Orientation="Vertical">
<RadioButton GroupName="Scan" Content="Do not scan my computer for music and movie"
Command="{Binding ChangeScanOptionCommand}"
CommandParameter="{x:Static Constants:ScanOption.None}"
IsChecked="{Binding ScanOption, Converter={StaticResource ScanOptionToCheckedConverter}, ConverterParameter={x:Static Constants:ScanOption.None}, Mode=OneWay}"/>
<TextBlock Margin="16,0" Text="Choose this option if you want to turn of scan your computer and you want to add music and movie manually"/>
</StackPanel>
<StackPanel Margin="10,10,10,0" Orientation="Vertical">
<CheckBox Content="Import IMDB movies"
IsChecked="{Binding IsImportIMDbMovies}"/>
<TextBlock Margin="16,0" Text="Choose this option if you want to import movies from IMDB which are not available at your storage."/>
</StackPanel>
</StackPanel>
</StackPanel>
</Border>
</UserControl>