Apply the changes on UserWindows as previously made on MainWindows
This commit is contained in:
@@ -28,18 +28,24 @@ namespace wpf_ax_utility
|
|||||||
{
|
{
|
||||||
Utility.AucCleaner();
|
Utility.AucCleaner();
|
||||||
|
|
||||||
string AxArgs = string.Empty;
|
string AxcFilePath = "";
|
||||||
|
|
||||||
switch (((Button)sender).Name)
|
switch (((Button)sender).Name)
|
||||||
{
|
{
|
||||||
case "LIVE":
|
case "LIVE":
|
||||||
AxArgs = @"-regConfig=axc\PAL_LIVE_USR.axc";
|
AxcFilePath = Properties.Resources.network_axc_path + Properties.Resources.LIVE_axc_filename;
|
||||||
|
if (!File.Exists(AxcFilePath))
|
||||||
|
AxcFilePath = Properties.Resources.local_axc_path + Properties.Resources.LIVE_axc_filename;
|
||||||
break;
|
break;
|
||||||
case "TEST":
|
case "TEST":
|
||||||
AxArgs = @"-regConfig=axc\PAL_TEST_USR.axc";
|
AxcFilePath = Properties.Resources.network_axc_path + Properties.Resources.TEST_axc_filename;
|
||||||
|
if (!File.Exists(AxcFilePath))
|
||||||
|
AxcFilePath = Properties.Resources.local_axc_path + Properties.Resources.TEST_axc_filename;
|
||||||
break; ;
|
break; ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var AxArgs = @"-regConfig=" + AxcFilePath;
|
||||||
|
|
||||||
Utility.AxExecution(AxArgs);
|
Utility.AxExecution(AxArgs);
|
||||||
|
|
||||||
Log.Logger.Information("Running AX client with this parameter: " + AxArgs);
|
Log.Logger.Information("Running AX client with this parameter: " + AxArgs);
|
||||||
|
|||||||
Reference in New Issue
Block a user