Rome Online White Labelling.
This commit is contained in:
@@ -10,7 +10,7 @@ using GraphQL;
|
||||
using Newtonsoft;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class ARMSRoData
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FileHelpers;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.IO;
|
||||
using RestSharp;
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class AppMetaData
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace BodyshopPartner.Utils
|
||||
public static Boolean IsTest = false;
|
||||
private static string workingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
|
||||
public static string globalScriptsPath = @"C:\ImEX\PartnerScripts";
|
||||
public static string globalScriptsPath = @"C:\Rome\PartnerScripts";
|
||||
public static RestClient RestClient;
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ namespace BodyshopPartner.Utils
|
||||
FirebaseAPIKey = "AIzaSyBw7_GTy7GtQyfkIRPVrWHEGKfcqeyXw0c";
|
||||
|
||||
#else
|
||||
graphQlEndpoint = "https://db.imex.online/v1/graphql";
|
||||
RestClient = new RestClient("https://api.imex.online");
|
||||
FirebaseAPIKey = "AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU";
|
||||
graphQlEndpoint = "https://db.romeonline.io/v1/graphql";
|
||||
RestClient = new RestClient("https://api.romeonline.io");
|
||||
FirebaseAPIKey = "AIzaSyAuLQR9SV5LsVxjU8wh9hvFLdhcAHU6cxE";
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class ApplicationExceptionHandler
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
using Firebase.Auth;
|
||||
using System.Timers;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class Auth
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
|
||||
namespace BodyshopPartner
|
||||
namespace RomeOnlinePartner
|
||||
{
|
||||
public class BaseModel : INotifyPropertyChanged
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace BodyshopPartner
|
||||
namespace RomeOnlinePartner
|
||||
{
|
||||
public abstract class BaseViewModel : INotifyPropertyChanged
|
||||
{
|
||||
|
||||
@@ -4,9 +4,9 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BodyshopPartner.Models;
|
||||
using RomeOnlinePartner.Models;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public class CIECAMonitor : FileSystemWatcher
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
using DotNetDBF;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BodyshopPartner.Utils.Decoder
|
||||
namespace RomeOnlinePartner.Utils.Decoder
|
||||
{
|
||||
class EstimateDecoder
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using BodyshopPartner.Models;
|
||||
using RomeOnlinePartner.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json.Linq;
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class DiskScan
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ using System.Net.Http;
|
||||
using Newtonsoft;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class GraphQL
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<Window x:Class="BodyshopPartner.Utils.Growls.GrowlNotification"
|
||||
<Window x:Class="RomeOnlinePartner.Utils.Growls.GrowlNotification"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
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:local="clr-namespace:BodyshopPartner.Utils.Growls"
|
||||
xmlns:local="clr-namespace:RomeOnlinePartner.Utils.Growls"
|
||||
mc:Ignorable="d"
|
||||
SizeToContent="WidthAndHeight"
|
||||
AllowsTransparency="True"
|
||||
@@ -11,7 +11,7 @@
|
||||
ShowInTaskbar="False"
|
||||
Topmost="True"
|
||||
UseLayoutRounding="True"
|
||||
Title="BodyshopPartner Notification"
|
||||
Title="RomeOnlinePartner Notification"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
||||
TextElement.FontWeight="Regular"
|
||||
@@ -57,7 +57,7 @@
|
||||
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.RowSpan="2"
|
||||
Source="../../favicon.ico"
|
||||
Source="../../ro-favicon.ico"
|
||||
Margin="4"
|
||||
Width="24"></Image>
|
||||
<TextBlock Grid.Column="1"
|
||||
|
||||
@@ -15,7 +15,7 @@ using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
|
||||
namespace BodyshopPartner.Utils.Growls
|
||||
namespace RomeOnlinePartner.Utils.Growls
|
||||
{
|
||||
public partial class GrowlNotification
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils.Growls
|
||||
namespace RomeOnlinePartner.Utils.Growls
|
||||
{
|
||||
public class Notification : INotifyPropertyChanged
|
||||
{
|
||||
|
||||
@@ -8,12 +8,12 @@ using System.Xml.Linq;
|
||||
using Newtonsoft;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using BodyshopPartner.Models;
|
||||
using RomeOnlinePartner.Models;
|
||||
using ToastNotifications.Messages;
|
||||
using System.Threading;
|
||||
using System.Reflection;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class HTTPServer
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace BodyshopPartner.Utils
|
||||
//QuickBooks Execution Routes.
|
||||
Route.Add("/qb/", (req, res, props) =>
|
||||
{
|
||||
hlog("Received a QuickBooks request from ImEX.online");
|
||||
hlog("Received a QuickBooks request from Rome Online");
|
||||
res.WithCORS();
|
||||
res.Close();
|
||||
}, "OPTIONS");
|
||||
@@ -41,7 +41,7 @@ namespace BodyshopPartner.Utils
|
||||
//Pinging based routes.
|
||||
Route.Add("/ping/", (req, res, props) =>
|
||||
{
|
||||
hlog("Received a ping from ImEX.online");
|
||||
hlog("Received a ping from Rome Online");
|
||||
res.WithCORS();
|
||||
res.Close();
|
||||
}, "OPTIONS");
|
||||
@@ -52,7 +52,7 @@ namespace BodyshopPartner.Utils
|
||||
//FileScanning Routes
|
||||
Route.Add("/scan/", (req, res, props) =>
|
||||
{
|
||||
hlog("Received a scan request from ImEX.online");
|
||||
hlog("Received a scan request from Rome Online");
|
||||
res.WithCORS();
|
||||
res.Close();
|
||||
}, "OPTIONS");
|
||||
@@ -61,7 +61,7 @@ namespace BodyshopPartner.Utils
|
||||
, "POST");
|
||||
Route.Add("/import/", (req, res, props) =>
|
||||
{
|
||||
hlog("Received an import request from ImEX.online");
|
||||
hlog("Received an import request from Rome Online");
|
||||
res.WithCORS();
|
||||
res.Close();
|
||||
}, "OPTIONS");
|
||||
@@ -71,7 +71,7 @@ namespace BodyshopPartner.Utils
|
||||
|
||||
Route.Add("/oec/", (req, res, props) =>
|
||||
{
|
||||
hlog("Received an OEC from ImEX.online");
|
||||
hlog("Received an OEC from Rome Online");
|
||||
res.WithCORS();
|
||||
res.Close();
|
||||
}, "OPTIONS");
|
||||
@@ -108,17 +108,17 @@ namespace BodyshopPartner.Utils
|
||||
hlog = HttpLogger;
|
||||
try
|
||||
{
|
||||
hlog("ImEX Online connection server starting...");
|
||||
hlog("Rome Online connection server starting...");
|
||||
HttpServer.ListenAsync(1337, token, Route.OnHttpRequestAsync).Wait();
|
||||
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
logger.Fatal("Unable to start HTTP server. " + Ex.ToString());
|
||||
hlog("ImEX Online connection server could not start. Please restart the partner to try again.");
|
||||
hlog("Rome Online connection server could not start. Please restart the partner to try again.");
|
||||
App.Current.Dispatcher.Invoke(() =>
|
||||
{
|
||||
string msg = "Unable to connect to ImEX Online Web App. Please ensure your firewall allows the connection.";
|
||||
string msg = "Unable to connect to Rome Online Web App. Please ensure your firewall allows the connection.";
|
||||
Utils.Notifications.notifier.ShowError(msg);
|
||||
});
|
||||
Utils.SquirrelAwareHelper.AddHttpExcetion();
|
||||
@@ -166,7 +166,7 @@ namespace BodyshopPartner.Utils
|
||||
{
|
||||
try
|
||||
{
|
||||
hlog("Processing QuickBooks request. ImEX Online Record ID:" + request.Id);
|
||||
hlog("Processing QuickBooks request. Rome Online Record ID:" + request.Id);
|
||||
XDocument response = XDocument.Parse(QuickBooksInterop.ProcessQBXmlRequestUnManaged(request.QbXML));
|
||||
QbXmlResponse ResponseStatus = QuickBooksInterop.ParseResponseXml(response);
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BodyshopPartner.Utils;
|
||||
using BodyshopPartner.Models;
|
||||
using BodyshopPartner.Utils.Growls;
|
||||
using RomeOnlinePartner.Utils;
|
||||
using RomeOnlinePartner.Models;
|
||||
using RomeOnlinePartner.Utils.Growls;
|
||||
using GraphQL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using ToastNotifications.Messages;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class JobProcessingQueue
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
class JsonPathConverter : JsonConverter
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class JsonExtensions
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Security;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class LoginHelpers
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ using ToastNotifications.Position;
|
||||
using ToastNotifications.Messages;
|
||||
using System.Windows;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class Notifications
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
using DotNetDBF;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class OEConnection
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.IO;
|
||||
using System.Timers;
|
||||
using RestSharp;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class PPGMixData
|
||||
{
|
||||
@@ -194,7 +194,7 @@ v_paint_codes
|
||||
new XElement("TransactionDate", DateTime.Now.ToString("yyyy-MM-hh:mm:ss"))
|
||||
),
|
||||
new XElement("Product",
|
||||
new XElement("Name", "ImEX Online"),
|
||||
new XElement("Name", "Rome Online"),
|
||||
new XElement("Version", null)
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class PowerModeEventHandler
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils.Queries
|
||||
namespace RomeOnlinePartner.Utils.Queries
|
||||
{
|
||||
class JobsQueries
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopPartner.Utils.Queries
|
||||
namespace RomeOnlinePartner.Utils.Queries
|
||||
{
|
||||
public static class VehicleQueries
|
||||
{
|
||||
|
||||
@@ -6,12 +6,12 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using BodyshopPartner.Utils.Growls;
|
||||
using RomeOnlinePartner.Utils.Growls;
|
||||
using Interop.QBFC13;
|
||||
using Interop.QBXMLRP2;
|
||||
using ToastNotifications.Messages;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class QuickBooksInterop
|
||||
{
|
||||
@@ -20,8 +20,8 @@ namespace BodyshopPartner.Utils
|
||||
private static RequestProcessor2 rp;
|
||||
private static string maxVersion;
|
||||
private static QBFileMode mode = QBFileMode.qbFileOpenDoNotCare;
|
||||
private static string appID = "ImEXBSP";
|
||||
private static string appName = "BodyshopPartner";
|
||||
private static string appID = "RomePartner";
|
||||
private static string appName = "RomeOnlinePartner";
|
||||
private static GrowlNotification Growler;
|
||||
|
||||
public static void ConnectToQuickBooks()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace BodyshopPartner
|
||||
namespace RomeOnlinePartner
|
||||
{
|
||||
public class RelayCommand : ICommand
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
using Microsoft.Win32.TaskScheduler;
|
||||
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class ScheduledTaskConfig
|
||||
{
|
||||
@@ -19,12 +19,12 @@ namespace BodyshopPartner.Utils
|
||||
try
|
||||
{
|
||||
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - Paint Scale Connection Export");
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - Paint Scale Connection Export");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export");
|
||||
}
|
||||
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ImEX Online Partner - Paint Scale Connection Export", QuickTriggerType.Hourly, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\PaintScaleExport.ps1");
|
||||
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("Rome Online Partner - Paint Scale Connection Export", QuickTriggerType.Hourly, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\PaintScaleExport.ps1");
|
||||
newTask.Run();
|
||||
|
||||
|
||||
@@ -41,12 +41,12 @@ namespace BodyshopPartner.Utils
|
||||
try
|
||||
{
|
||||
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - ARMS");
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - ARMS");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS");
|
||||
}
|
||||
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ImEX Online Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1");
|
||||
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("Rome Online Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1");
|
||||
newTask.Run();
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Verify that the partner is running. If not, strat it.
|
||||
|
||||
if((Get-Process -Name ImEXOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
|
||||
& "$Env:USERPROFILE\AppData\Local\ImEXOnlinePartner\ImEXOnlinePartner.exe"
|
||||
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
|
||||
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe"
|
||||
}
|
||||
|
||||
$PSversion = $PSVersionTable.PSVersion.Major
|
||||
@@ -11,7 +11,7 @@ function v2 {
|
||||
# Post request to the partner to trigger the export.
|
||||
Invoke-WebRequest -Uri http://localhost:1337/arms/rodata/ -Method POST
|
||||
#Start the Arms Uploader.
|
||||
Start-Process -FilePath "C:\ImEX\Applications\ARMSUploader\ROUpload.exe"
|
||||
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe"
|
||||
}
|
||||
|
||||
function v1 {
|
||||
@@ -23,7 +23,7 @@ ResponseStream = $Response.GetResponseStream()
|
||||
ReadStream = New-Object System.IO.StreamReader $ResponseStream
|
||||
#Data=$ReadStream.ReadToEnd()
|
||||
#Start the Arms Uploader.
|
||||
Start-Process -FilePath "C:\ImEX\Applications\ARMSUploader\ROUpload.exe"
|
||||
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Verify that the partner is running. If not, strat it.
|
||||
|
||||
if((Get-Process -Name ImEXOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
|
||||
& "$Env:USERPROFILE\AppData\Local\ImEXOnlinePartner\ImEXOnlinePartner.exe"
|
||||
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
|
||||
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe"
|
||||
}
|
||||
|
||||
$PSversion = $PSVersionTable.PSVersion.Major
|
||||
|
||||
@@ -12,7 +12,7 @@ Windows Registry Editor Version 5.00
|
||||
[HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open]
|
||||
|
||||
[HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open\command]
|
||||
@="\"C:\\ImEX\\PartnerScripts\\imexmedia.bat\" %1"
|
||||
@="\"C:\\Rome\\PartnerScripts\\imexmedia.bat\" %1"
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
|
||||
"ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001
|
||||
|
||||
@@ -9,7 +9,7 @@ using Microsoft.Win32.TaskScheduler;
|
||||
using System.IO;
|
||||
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class SquirrelAwareHelper
|
||||
{
|
||||
@@ -69,10 +69,10 @@ namespace BodyshopPartner.Utils
|
||||
//The paint scale accidentally got added to all people running v31. This was added to remove it.
|
||||
try
|
||||
{
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - Paint Scale Connection");
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - Paint Scale Connection");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -150,10 +150,10 @@ namespace BodyshopPartner.Utils
|
||||
mgr.RemoveShortcutForThisExe();
|
||||
try
|
||||
{
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - Paint Scale Connection Export"); //This is the old scale path. This was accidentally added for everyone.
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export"); //This is the old scale path. This was accidentally added for everyone.
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - Paint Scale Connection");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -162,10 +162,10 @@ namespace BodyshopPartner.Utils
|
||||
}
|
||||
try
|
||||
{
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - Paint Scale Connection Export");
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - Paint Scale Connection Export");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -174,10 +174,10 @@ namespace BodyshopPartner.Utils
|
||||
}
|
||||
try
|
||||
{
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ImEX Online Partner - ARMS");
|
||||
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS");
|
||||
if (existingTask != null)
|
||||
{
|
||||
TaskService.Instance.RootFolder.DeleteTask("ImEX Online Partner - ARMS");
|
||||
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public class OpenMainWindowCommand : ICommand
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public class BoolVisibilityConverter : IValueConverter
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
namespace RomeOnlinePartner.Utils
|
||||
{
|
||||
public static class UpdateHandler
|
||||
{
|
||||
@@ -35,7 +35,7 @@ namespace BodyshopPartner.Utils
|
||||
|
||||
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
|
||||
|
||||
public const string UpdatePath = @"http://partner.imex.online/";
|
||||
public const string UpdatePath = @"http://partner.romeonline.io/";
|
||||
|
||||
public static async Task<bool> AreUpdatesAvailable()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user