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();
|
||||
|
||||
string AxArgs = string.Empty;
|
||||
string AxcFilePath = "";
|
||||
|
||||
switch (((Button)sender).Name)
|
||||
{
|
||||
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;
|
||||
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; ;
|
||||
}
|
||||
|
||||
var AxArgs = @"-regConfig=" + AxcFilePath;
|
||||
|
||||
Utility.AxExecution(AxArgs);
|
||||
|
||||
Log.Logger.Information("Running AX client with this parameter: " + AxArgs);
|
||||
|
||||
Reference in New Issue
Block a user