mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 11:14:25 +00:00
Update bindings in MetadataEditor.axaml to use OneWay mode for commands and collections
This commit is contained in:
@@ -235,8 +235,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveDeveloperCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveDeveloperCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_developer_name}" />
|
||||
</DockPanel>
|
||||
@@ -252,10 +252,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Publisher}"
|
||||
Command="{Binding AddPublisherCommand}"
|
||||
Command="{Binding AddPublisherCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Publishers}"
|
||||
<ListBox ItemsSource="{Binding Publishers, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -264,8 +264,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemovePublisherCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemovePublisherCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_publisher_name}" />
|
||||
</DockPanel>
|
||||
@@ -281,10 +281,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Author}"
|
||||
Command="{Binding AddAuthorCommand}"
|
||||
Command="{Binding AddAuthorCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Authors}"
|
||||
<ListBox ItemsSource="{Binding Authors, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -293,8 +293,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAuthorCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAuthorCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_author_name}" />
|
||||
</DockPanel>
|
||||
@@ -310,10 +310,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Performer}"
|
||||
Command="{Binding AddPerformerCommand}"
|
||||
Command="{Binding AddPerformerCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Performers}"
|
||||
<ListBox ItemsSource="{Binding Performers, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -322,8 +322,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemovePerformerCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemovePerformerCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_performer_name}" />
|
||||
</DockPanel>
|
||||
@@ -346,10 +346,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Keyword}"
|
||||
Command="{Binding AddKeywordCommand}"
|
||||
Command="{Binding AddKeywordCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Keywords}"
|
||||
<ListBox ItemsSource="{Binding Keywords, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -358,8 +358,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveKeywordCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveKeywordCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_keyword}" />
|
||||
</DockPanel>
|
||||
@@ -375,10 +375,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Category}"
|
||||
Command="{Binding AddCategoryCommand}"
|
||||
Command="{Binding AddCategoryCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Categories}"
|
||||
<ListBox ItemsSource="{Binding Categories, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -387,8 +387,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveCategoryCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveCategoryCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_category}" />
|
||||
</DockPanel>
|
||||
@@ -404,10 +404,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Subcategory}"
|
||||
Command="{Binding AddSubcategoryCommand}"
|
||||
Command="{Binding AddSubcategoryCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Subcategories}"
|
||||
<ListBox ItemsSource="{Binding Subcategories, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -416,8 +416,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveSubcategoryCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveSubcategoryCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_subcategory}" />
|
||||
</DockPanel>
|
||||
@@ -433,10 +433,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_System}"
|
||||
Command="{Binding AddSystemCommand}"
|
||||
Command="{Binding AddSystemCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Systems}"
|
||||
<ListBox ItemsSource="{Binding Systems, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -445,8 +445,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveSystemCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveSystemCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_system}" />
|
||||
</DockPanel>
|
||||
@@ -471,13 +471,13 @@
|
||||
<DockPanel Margin="0,0,0,8">
|
||||
<Button DockPanel.Dock="Right"
|
||||
Content="{x:Static gui:GUI.Button_Add}"
|
||||
Command="{Binding AddLanguageCommand}"
|
||||
CommandParameter="{Binding #languageCombo.SelectedItem}" />
|
||||
Command="{Binding AddLanguageCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding #languageCombo.SelectedItem, Mode=OneWay}" />
|
||||
<ComboBox x:Name="languageCombo"
|
||||
ItemsSource="{Binding AvailableLanguages}"
|
||||
ItemsSource="{Binding AvailableLanguages, Mode=OneWay}"
|
||||
PlaceholderText="{x:Static gui:GUI.Placeholder_Select_language_to_add}" />
|
||||
</DockPanel>
|
||||
<ListBox ItemsSource="{Binding Languages}"
|
||||
<ListBox ItemsSource="{Binding Languages, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -486,8 +486,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveLanguageCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveLanguageCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBlock Text="{Binding Value, Mode=TwoWay}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="8,0" />
|
||||
@@ -506,13 +506,13 @@
|
||||
<DockPanel Margin="0,0,0,8">
|
||||
<Button DockPanel.Dock="Right"
|
||||
Content="{x:Static gui:GUI.Button_Add}"
|
||||
Command="{Binding AddArchitectureCommand}"
|
||||
CommandParameter="{Binding #archCombo.SelectedItem}" />
|
||||
Command="{Binding AddArchitectureCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding #archCombo.SelectedItem, Mode=OneWay}" />
|
||||
<ComboBox x:Name="archCombo"
|
||||
ItemsSource="{Binding AvailableArchitectures}"
|
||||
ItemsSource="{Binding AvailableArchitectures, Mode=OneWay}"
|
||||
PlaceholderText="{x:Static gui:GUI.Placeholder_Select_architecture_to_add}" />
|
||||
</DockPanel>
|
||||
<ListBox ItemsSource="{Binding Architectures}"
|
||||
<ListBox ItemsSource="{Binding Architectures, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -521,8 +521,8 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveArchitectureCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveArchitectureCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBlock Text="{Binding Value, Mode=TwoWay}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="8,0" />
|
||||
@@ -539,10 +539,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Operating_System}"
|
||||
Command="{Binding AddRequiredOperatingSystemCommand}"
|
||||
Command="{Binding AddRequiredOperatingSystemCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding RequiredOperatingSystems}"
|
||||
<ListBox ItemsSource="{Binding RequiredOperatingSystems, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="300">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -557,12 +557,12 @@
|
||||
<Button DockPanel.Dock="Right"
|
||||
Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveRequiredOperatingSystemCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveRequiredOperatingSystemCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_OS_Name}" />
|
||||
</DockPanel>
|
||||
<TextBox Text="{Binding Name}"
|
||||
<TextBox Text="{Binding Name, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_OS_name}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -580,10 +580,10 @@
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Margin="12">
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Barcode}"
|
||||
Command="{Binding AddBarcodeCommand}"
|
||||
Command="{Binding AddBarcodeCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Barcodes}"
|
||||
<ListBox ItemsSource="{Binding Barcodes, Mode=OneWay}"
|
||||
MinHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
@@ -596,18 +596,18 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove_Barcode}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBarcodeCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBarcodeCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Barcode_Type}" />
|
||||
<ComboBox
|
||||
ItemsSource="{Binding $parent[Window].DataContext.AvailableBarcodeTypes}"
|
||||
SelectedItem="{Binding Type}" />
|
||||
ItemsSource="{Binding $parent[Window].DataContext.AvailableBarcodeTypes, Mode=OneWay}"
|
||||
SelectedItem="{Binding Type, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Value}" />
|
||||
<TextBox Text="{Binding Value}"
|
||||
<TextBox Text="{Binding Value, Mode=TwoWay}"
|
||||
Watermark="{x:Static gui:GUI.Watermark_Enter_barcode_value}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -628,10 +628,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Magazine}"
|
||||
Command="{Binding AddMagazineCommand}"
|
||||
Command="{Binding AddMagazineCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Magazines}"
|
||||
<ListBox ItemsSource="{Binding Magazines, Mode=OneWay}"
|
||||
MinHeight="150"
|
||||
MaxHeight="300">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -645,28 +645,28 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveMagazineCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveMagazineCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Name}" />
|
||||
<TextBox Text="{Binding Name}" />
|
||||
<TextBox Text="{Binding Name, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Editorial}" />
|
||||
<TextBox Text="{Binding Editorial}" />
|
||||
<TextBox Text="{Binding Editorial, Mode=TwoWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Number}" />
|
||||
<TextBox Text="{Binding Number}" />
|
||||
<TextBox Text="{Binding Number, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Pages}" />
|
||||
<TextBox Text="{Binding Pages}" />
|
||||
<TextBox Text="{Binding Pages, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -683,10 +683,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Book}"
|
||||
Command="{Binding AddBookCommand}"
|
||||
Command="{Binding AddBookCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Books}"
|
||||
<ListBox ItemsSource="{Binding Books, Mode=OneWay}"
|
||||
MinHeight="150"
|
||||
MaxHeight="300">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -700,24 +700,24 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBookCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBookCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Name}" />
|
||||
<TextBox Text="{Binding Name}" />
|
||||
<TextBox Text="{Binding Name, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Author}" />
|
||||
<TextBox Text="{Binding Author}" />
|
||||
<TextBox Text="{Binding Author, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Editorial}" />
|
||||
<TextBox Text="{Binding Editorial}" />
|
||||
<TextBox Text="{Binding Editorial, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Pages}" />
|
||||
<TextBox Text="{Binding Pages}" />
|
||||
<TextBox Text="{Binding Pages, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
@@ -732,10 +732,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_User_Manual}"
|
||||
Command="{Binding AddUserManualCommand}"
|
||||
Command="{Binding AddUserManualCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding UserManuals}"
|
||||
<ListBox ItemsSource="{Binding UserManuals, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="200">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -749,20 +749,20 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveUserManualCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveUserManualCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Pages}" />
|
||||
<TextBox Text="{Binding Pages}" />
|
||||
<TextBox Text="{Binding Pages, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Page_Size}" />
|
||||
<TextBox Text="{Binding PageSize}" />
|
||||
<TextBox Text="{Binding PageSize, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -786,10 +786,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Optical_Disc}"
|
||||
Command="{Binding AddOpticalDiscCommand}"
|
||||
Command="{Binding AddOpticalDiscCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding OpticalDiscs}"
|
||||
<ListBox ItemsSource="{Binding OpticalDiscs, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -803,26 +803,26 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveOpticalDiscCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveOpticalDiscCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Part_Number}" />
|
||||
<TextBox Text="{Binding PartNumber}" />
|
||||
<TextBox Text="{Binding PartNumber, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Disc_Type}" />
|
||||
<TextBox Text="{Binding DiscType}" />
|
||||
<TextBox Text="{Binding DiscType, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Serial_Number}" />
|
||||
<TextBox Text="{Binding SerialNumber}" />
|
||||
<TextBox Text="{Binding SerialNumber, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Disc_SubType}" />
|
||||
<TextBox Text="{Binding DiscSubType}" />
|
||||
<TextBox Text="{Binding DiscSubType, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -839,10 +839,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Block_Media}"
|
||||
Command="{Binding AddBlockMediaCommand}"
|
||||
Command="{Binding AddBlockMediaCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding BlockMedias}"
|
||||
<ListBox ItemsSource="{Binding BlockMedias, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -856,26 +856,26 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBlockMediaCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveBlockMediaCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Serial}" />
|
||||
<TextBox Text="{Binding Serial}" />
|
||||
<TextBox Text="{Binding Serial, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Model}" />
|
||||
<TextBox Text="{Binding Model}" />
|
||||
<TextBox Text="{Binding Model, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Firmware}" />
|
||||
<TextBox Text="{Binding Firmware}" />
|
||||
<TextBox Text="{Binding Firmware, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -892,10 +892,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Linear_Media}"
|
||||
Command="{Binding AddLinearMediaCommand}"
|
||||
Command="{Binding AddLinearMediaCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding LinearMedias}"
|
||||
<ListBox ItemsSource="{Binding LinearMedias, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -909,26 +909,26 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveLinearMediaCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveLinearMediaCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Part_Number}" />
|
||||
<TextBox Text="{Binding PartNumber}" />
|
||||
<TextBox Text="{Binding PartNumber, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Model}" />
|
||||
<TextBox Text="{Binding Model}" />
|
||||
<TextBox Text="{Binding Model, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Serial_Number}" />
|
||||
<TextBox Text="{Binding SerialNumber}" />
|
||||
<TextBox Text="{Binding SerialNumber, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -945,10 +945,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Audio_Media}"
|
||||
Command="{Binding AddAudioMediaCommand}"
|
||||
Command="{Binding AddAudioMediaCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding AudioMedias}"
|
||||
<ListBox ItemsSource="{Binding AudioMedias, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -962,26 +962,26 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAudioMediaCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAudioMediaCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Part_Number}" />
|
||||
<TextBox Text="{Binding PartNumber}" />
|
||||
<TextBox Text="{Binding PartNumber, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Model}" />
|
||||
<TextBox Text="{Binding Model}" />
|
||||
<TextBox Text="{Binding Model, Mode=TwoWay}" />
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Serial_Number}" />
|
||||
<TextBox Text="{Binding SerialNumber}" />
|
||||
<TextBox Text="{Binding SerialNumber, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -1005,10 +1005,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_PCI_Card}"
|
||||
Command="{Binding AddPciCardCommand}"
|
||||
Command="{Binding AddPciCardCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding PciCards}"
|
||||
<ListBox ItemsSource="{Binding PciCards, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -1022,20 +1022,20 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemovePciCardCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemovePciCardCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="8">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Vendor_ID}" />
|
||||
<TextBox Text="{Binding VendorID}" />
|
||||
<TextBox Text="{Binding VendorID, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Device_ID}" />
|
||||
<TextBox Text="{Binding DeviceID}" />
|
||||
<TextBox Text="{Binding DeviceID, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
@@ -1052,10 +1052,10 @@
|
||||
<Border Classes="section">
|
||||
<StackPanel>
|
||||
<Button Content="{x:Static gui:GUI.Button_Add_Advertisement}"
|
||||
Command="{Binding AddAdvertisementCommand}"
|
||||
Command="{Binding AddAdvertisementCommand, Mode=OneWay}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,0,8" />
|
||||
<ListBox ItemsSource="{Binding Advertisements}"
|
||||
<ListBox ItemsSource="{Binding Advertisements, Mode=OneWay}"
|
||||
MinHeight="100"
|
||||
MaxHeight="250">
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -1069,16 +1069,16 @@
|
||||
<Button Classes="danger"
|
||||
Content="{x:Static gui:GUI.Button_Remove}"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAdvertisementCommand}"
|
||||
CommandParameter="{Binding}" />
|
||||
Command="{Binding $parent[Window].DataContext.RemoveAdvertisementCommand, Mode=OneWay}"
|
||||
CommandParameter="{Binding Mode=OneWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer}" />
|
||||
<TextBox Text="{Binding Manufacturer, Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Classes="label"
|
||||
Text="{x:Static gui:GUI.Label_Product}" />
|
||||
<TextBox Text="{Binding Product}" />
|
||||
<TextBox Text="{Binding Product, Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
|
||||
Reference in New Issue
Block a user