3.1.2
Support for deleting profiles/policies
This commit is contained in:
21
Xaml/BulkDeleteForm.xaml
Normal file
21
Xaml/BulkDeleteForm.xaml
Normal file
@@ -0,0 +1,21 @@
|
||||
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5" Grid.IsSharedSizeScope='True'>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Grid.Row='0' Margin="0,0,5,0" VerticalAlignment="Top">
|
||||
<Label Content="Objects to delete" />
|
||||
<Rectangle Style="{DynamicResource InfoIcon}" ToolTip="All objects of the seleted types will be deleted" Margin="0,2,0,0" />
|
||||
</StackPanel>
|
||||
<DataGrid Name="dgBulkDeleteObjects" Grid.Row='1' CanUserAddRows="False" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" Margin="0,0,0,5">
|
||||
</DataGrid>
|
||||
|
||||
<StackPanel Name="spDeleteSubMenu" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row='2' Grid.ColumnSpan='2' >
|
||||
<Button Name="btnDelete" Content="Delete" Width='100' Margin="5,0,0,0" />
|
||||
<Button Name="btnClose" Content="Close" Width='100' Margin="5,0,0,0" />
|
||||
</StackPanel>
|
||||
|
||||
</Grid >
|
||||
@@ -76,7 +76,10 @@
|
||||
<Rectangle Style="{DynamicResource InfoIcon}" ToolTip="Select the object types that should be exported" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
|
||||
<DataGrid Name="dgObjectsToExport" Grid.Column='1' CanUserAddRows="False" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" Margin="0,0,0,5" />
|
||||
|
||||
<!--
|
||||
<ListBox Name="lstObjectsToExport" Grid.Column='1'
|
||||
SelectionMode="Single"
|
||||
Grid.IsSharedSizeScope='True' >
|
||||
@@ -96,6 +99,7 @@
|
||||
</ListBox>
|
||||
|
||||
<CheckBox IsChecked="true" Margin="7,2,0,0" Grid.Column='1' Grid.Row='1' Name="chkCheckAll" ToolTip="Select/Deselect all" />
|
||||
-->
|
||||
</Grid >
|
||||
|
||||
<StackPanel Name="spExportSubMenu" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row='2' Grid.ColumnSpan='2' >
|
||||
|
||||
@@ -90,29 +90,9 @@
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<ListBox Name="lstObjectsToImport" Grid.Column='1'
|
||||
SelectionMode="Single"
|
||||
Grid.IsSharedSizeScope='True' >
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="SelectedColumn" />
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="FileNameColumn" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<CheckBox IsChecked="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Text="{Binding Title}" Grid.Column='1' Margin="5,0,0,0" />
|
||||
<TextBlock Text="{Binding ObjectType.ImportOrder}" Grid.Column='2' Margin="5,0,0,0" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<DataGrid Name="dgObjectsToImport" Grid.Column='1' CanUserAddRows="False" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" Margin="0,0,0,5" />
|
||||
|
||||
<CheckBox IsChecked="true" Margin="7,2,0,0" Grid.Column='1' Grid.Row='1' Name="chkCheckAll" ToolTip="Select/Deselect all" />
|
||||
|
||||
</Grid >
|
||||
</Grid>
|
||||
|
||||
<StackPanel Name="spImportSubMenu" Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row='2' Grid.ColumnSpan='2' >
|
||||
<Button Name="btnImport" Content="Import" Width='100' Margin="5,0,0,0" />
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<StackPanel Grid.Row="2" Name="spSubMenu" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,0,0" >
|
||||
<Button Name="btnView" Content="View" MinWidth="100" Margin="0,0,5,0" IsEnabled="False" ToolTip="Veiw the json data of an item" />
|
||||
<Button Name="btnCopy" Content="Copy" MinWidth="100" Margin="0,0,5,0" IsEnabled="False" ToolTip="Clone the selected item"/>
|
||||
<Button Name="btnDelete" Content="Delete" MinWidth="100" Margin="0,0,5,0" IsEnabled="False" ToolTip="Delete selected item(s)"/>
|
||||
<Button Name="btnImport" Content="Import" MinWidth="100" Margin="0,0,5,0" IsEnabled="False" ToolTip="Import items" />
|
||||
<Button Name="btnExport" Content="Export" MinWidth="100" IsEnabled="False" ToolTip="Export selected or all items" />
|
||||
</StackPanel>
|
||||
|
||||
7
Xaml/Icons/Report.xaml
Normal file
7
Xaml/Icons/Report.xaml
Normal file
@@ -0,0 +1,7 @@
|
||||
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Canvas Height="50" Width="50">
|
||||
<Path Fill="#3898C6" Data="M9.375 3.125h37.5V50h-37.5z" />
|
||||
<Path Fill="#7B7B7B" Data="M3.125 6.25H12.5v3.125H3.125zm0 9.375H12.5v3.125H3.125zm0 9.375H12.5v3.125H3.125zm0 9.375H12.5V37.5H3.125zm0 9.375H12.5v3.125H3.125z" />
|
||||
<Path Data="M18.75 15.625H37.5V25H18.75z" Fill="#ffffff" />
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
Reference in New Issue
Block a user