diff --git a/wpf_ax_utility/MainWindow.xaml b/wpf_ax_utility/MainWindow.xaml
index 07dc307..e0ca0e0 100644
--- a/wpf_ax_utility/MainWindow.xaml
+++ b/wpf_ax_utility/MainWindow.xaml
@@ -4,11 +4,15 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
+ MouseLeftButtonDown="MouseLeftDrag"
Height="260" Width="400"
ResizeMode="NoResize"
+ WindowStyle="None"
WindowStartupLocation="CenterScreen"
+ AllowsTransparency="True"
+ Background="Transparent"
Title="PAL Ax Utility"
- Icon="/axlogo.png">
+ Icon="/axlogo.ico">
+
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+ Background="Transparent"
+ HorizontalAlignment="Right"
+ BorderBrush="{x:Null}"
+ Margin="0,3,3,0">
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/wpf_ax_utility/MainWindow.xaml.cs b/wpf_ax_utility/MainWindow.xaml.cs
index a12b1ef..59111fa 100644
--- a/wpf_ax_utility/MainWindow.xaml.cs
+++ b/wpf_ax_utility/MainWindow.xaml.cs
@@ -2,6 +2,7 @@
using System.IO;
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Input;
namespace wpf_ax_utility
{
@@ -12,30 +13,40 @@ namespace wpf_ax_utility
InitializeComponent();
}
+ private void MouseLeftDrag(object sender, MouseButtonEventArgs e)
+ {
+ DragMove();
+ }
+
+ private void CloseButton(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+
private void ButtonClicked(object sender, RoutedEventArgs e)
{
AucCleaner();
string AxClient = @"C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Ax32.exe";
- string AxArguments = string.Empty;
+ string AxArgs = string.Empty;
switch (((Button)sender).Name)
{
case "LIVE":
- AxArguments = @"-regConfig=L:\Link\PAL_LIVE_02_USR.axc";
+ AxArgs = @"-regConfig=L:\Link\PAL_LIVE_02_USR.axc";
break;
case "DEV":
- AxArguments = @"-regConfig=L:\Link\PAL_DEVELOP_USR.axc";
+ AxArgs = @"-regConfig=L:\Link\PAL_DEVELOP_USR.axc";
break ;
case "TEST":
- AxArguments = @"-regConfig=L:\Link\PAL_TEST_USR.axc";
+ AxArgs = @"-regConfig=L:\Link\PAL_TEST_USR.axc";
break;
case "STAGING":
- AxArguments = @"-regConfig=L:\Link\PAL_STAGING_USR.axc";
+ AxArgs = @"-regConfig=L:\Link\PAL_STAGING_USR.axc";
break; ;
}
- AxExecution(AxClient, AxArguments);
+ AxExecution(AxClient, AxArgs);
}
public static void AxExecution(string AxClient, string AxArgs)
diff --git a/wpf_ax_utility/axlogo.ico b/wpf_ax_utility/axlogo.ico
new file mode 100644
index 0000000..00ccdb2
Binary files /dev/null and b/wpf_ax_utility/axlogo.ico differ
diff --git a/wpf_ax_utility/axlogo.png b/wpf_ax_utility/axlogo.png
deleted file mode 100644
index 861f302..0000000
Binary files a/wpf_ax_utility/axlogo.png and /dev/null differ
diff --git a/wpf_ax_utility/pallogo.png b/wpf_ax_utility/pallogo.png
deleted file mode 100644
index e4fd3e9..0000000
Binary files a/wpf_ax_utility/pallogo.png and /dev/null differ
diff --git a/wpf_ax_utility/wpf_ax_utility.csproj b/wpf_ax_utility/wpf_ax_utility.csproj
index 4844db5..224d930 100644
--- a/wpf_ax_utility/wpf_ax_utility.csproj
+++ b/wpf_ax_utility/wpf_ax_utility.csproj
@@ -8,12 +8,15 @@
+
-
+
+ Always
+