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:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:converters="http://sharpvectors.codeplex.com/svgc/"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
MouseLeftButtonDown="MouseLeftDrag"
|
MouseLeftButtonDown="MouseLeftDrag"
|
||||||
Height="260" Width="400"
|
Height="300" Width="400"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
WindowStyle="None"
|
WindowStyle="None"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
@@ -24,18 +25,19 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Style.Resources>
|
</Style.Resources>
|
||||||
</Style>
|
</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>
|
</Window.Resources>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border BorderBrush="#0082C4" BorderThickness="1.5" CornerRadius="10" Background="White">
|
<Border BorderBrush="#0082C4" BorderThickness="1.5" CornerRadius="10" Background="White">
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="auto"/>
|
<RowDefinition Height="auto"/>
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
@@ -58,7 +60,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<GroupBox Margin="10,2,10,10"
|
<GroupBox Margin="10,2,10,2"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
BorderBrush="LightGray"
|
BorderBrush="LightGray"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
@@ -127,6 +129,43 @@
|
|||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</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>
|
</Grid>
|
||||||
|
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -24,6 +24,22 @@ namespace wpf_ax_utility
|
|||||||
Close();
|
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)
|
private void ButtonClicked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Utility.AucCleaner();
|
Utility.AucCleaner();
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<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" />
|
<PackageReference Include="Serilog.Sinks.Graylog" Version="2.3.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user