Add button for clear .auc file
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:converters="http://sharpvectors.codeplex.com/svgc/"
|
||||
mc:Ignorable="d"
|
||||
MouseLeftButtonDown="MouseLeftDrag"
|
||||
Height="260" Width="400"
|
||||
Height="300" Width="400"
|
||||
ResizeMode="NoResize"
|
||||
WindowStyle="None"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
@@ -24,18 +25,19 @@
|
||||
</Style>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
<GeometryGroup x:Key="tashCan">
|
||||
<PathGeometry Figures="M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"/>
|
||||
</GeometryGroup>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid>
|
||||
<Border BorderBrush="#0082C4" BorderThickness="1.5" CornerRadius="10" Background="White">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<DockPanel>
|
||||
@@ -58,7 +60,7 @@
|
||||
</Button>
|
||||
</DockPanel>
|
||||
|
||||
<GroupBox Margin="10,2,10,10"
|
||||
<GroupBox Margin="10,2,10,2"
|
||||
VerticalAlignment="Stretch"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="1"
|
||||
@@ -127,6 +129,43 @@
|
||||
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Margin="10,2,10,10"
|
||||
VerticalAlignment="Stretch"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="1"
|
||||
Header="Utility"
|
||||
Grid.Row="2">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="330"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Button Style="{StaticResource TabButton}"
|
||||
Click="AucCleanerButton"
|
||||
Margin="5"
|
||||
FontSize="12"
|
||||
FontWeight="DemiBold"
|
||||
Background="LightGray"
|
||||
Grid.Column="0">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Path Margin="5,0,5,0" Height="15" Width="13.125" Stretch="Fill" Fill="Black" Stroke="Black" StrokeThickness="0.1" StrokeStartLineCap="Flat" StrokeEndLineCap="Round" Data="{StaticResource tashCan}" VerticalAlignment="Center"/>
|
||||
<TextBlock>Elimina .AUC</TextBlock>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button Style="{StaticResource TabButton}"
|
||||
Click="InfoButtonButton"
|
||||
Margin="5"
|
||||
Content="?"
|
||||
FontSize="12"
|
||||
FontWeight="DemiBold"
|
||||
Background="LightGray"
|
||||
Grid.Column="1">
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
|
||||
@@ -24,6 +24,22 @@ namespace wpf_ax_utility
|
||||
Close();
|
||||
}
|
||||
|
||||
private void AucCleanerButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Utility.AucCleaner();
|
||||
|
||||
const string message = "I file .auc sono stati cancellati!";
|
||||
const string caption = "Informazioni";
|
||||
MessageBox.Show(message, caption, MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
}
|
||||
|
||||
private void InfoButtonButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
const string message = "Durante il normale utilizzo del software Microsoft Dynamics Ax 2012, potrebbero generarsi dei conflitti nelle impostazioni utente, che bloccano l'apertura del programma.\r\n\r\nÈ possibile tentare di sbloccare la situazione eliminando i file AUC dalla cache locale dell'utente.";
|
||||
const string caption = "Informazioni";
|
||||
MessageBox.Show(message, caption, MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
}
|
||||
|
||||
private void ButtonClicked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Utility.AucCleaner();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="Serilog" Version="2.12.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Graylog" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user