ProManager initial setup.

This commit is contained in:
Patrick Fic
2024-03-20 14:30:48 -07:00
parent 63f18cdcae
commit 84908aabfe
68 changed files with 164 additions and 176 deletions

View File

@@ -2,7 +2,7 @@
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="RomeOnlinePartner.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="ProManagerPartner.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<startup> <startup>
@@ -41,7 +41,7 @@
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<userSettings> <userSettings>
<RomeOnlinePartner.Properties.Settings> <ProManagerPartner.Properties.Settings>
<setting name="Username" serializeAs="String"> <setting name="Username" serializeAs="String">
<value /> <value />
</setting> </setting>
@@ -84,6 +84,6 @@
<setting name="PpcExportPath" serializeAs="String"> <setting name="PpcExportPath" serializeAs="String">
<value>C:\CIECA\CCC\IMPORT</value> <value>C:\CIECA\CCC\IMPORT</value>
</setting> </setting>
</RomeOnlinePartner.Properties.Settings> </ProManagerPartner.Properties.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View File

@@ -1,7 +1,7 @@
<Application x:Class="RomeOnlinePartner.App" <Application x:Class="ProManagerPartner.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:RomeOnlinePartner" xmlns:local="clr-namespace:ProManagerPartner"
ShutdownMode="OnExplicitShutdown" ShutdownMode="OnExplicitShutdown"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Exit="Application_Exit" Exit="Application_Exit"

View File

@@ -12,14 +12,14 @@ using System.Windows;
using System.Windows.Interop; using System.Windows.Interop;
using System.Windows.Media; using System.Windows.Media;
namespace RomeOnlinePartner namespace ProManagerPartner
{ {
/// <summary> /// <summary>
/// Interaction logic for App.xaml /// Interaction logic for App.xaml
/// </summary> /// </summary>
public partial class App : Application public partial class App : Application
{ {
static Mutex mutex = new Mutex(false, "Rome Online Partner"); static Mutex mutex = new Mutex(false, "ProManager Partner");
App() App()
{ {
@@ -31,7 +31,7 @@ namespace RomeOnlinePartner
// of the program is in the process of shutting down. // of the program is in the process of shutting down.
if (!mutex.WaitOne(TimeSpan.FromSeconds(2), false)) if (!mutex.WaitOne(TimeSpan.FromSeconds(2), false))
{ {
MessageBox.Show("Rome Online Partner is already running."); MessageBox.Show("ProManager Partner is already running.");
App.Current.Shutdown(); App.Current.Shutdown();
return; return;
} }
@@ -48,7 +48,7 @@ namespace RomeOnlinePartner
mutex.ReleaseMutex(); mutex.ReleaseMutex();
Utils.PowerModeEventHandler.DisposeEventHandler(); Utils.PowerModeEventHandler.DisposeEventHandler();
RomeOnlinePartner.Properties.Settings.Default.Save(); ProManagerPartner.Properties.Settings.Default.Save();
Utils.QuickBooksInterop.DisconnectFromQuickBooks(); Utils.QuickBooksInterop.DisconnectFromQuickBooks();
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{76B98E9B-A33A-464F-A07B-56E773376543}</ProjectGuid> <ProjectGuid>{76B98E9B-A33A-464F-A07B-56E773376543}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>RomeOnlinePartner</RootNamespace> <RootNamespace>ProManagerPartner</RootNamespace>
<AssemblyName>RomeOnlinePartner</AssemblyName> <AssemblyName>ProManagerPartner</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
@@ -54,7 +54,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>Assets\ro-favicon.ico</ApplicationIcon> <ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@@ -80,7 +80,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup /> <PropertyGroup />
<PropertyGroup> <PropertyGroup>
<StartupObject>RomeOnlinePartner.App</StartupObject> <StartupObject>ProManagerPartner.App</StartupObject>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Test|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Test|AnyCPU'">
<OutputPath>bin\Test\</OutputPath> <OutputPath>bin\Test\</OutputPath>
@@ -271,8 +271,7 @@
<Resource Include="Assets\logo1024.png" /> <Resource Include="Assets\logo1024.png" />
<Resource Include="Assets\favicon.ico" /> <Resource Include="Assets\favicon.ico" />
<Resource Include="favicon.ico" /> <Resource Include="favicon.ico" />
<Resource Include="Assets\ro-favicon.png" /> <Resource Include="Assets\logo.png" />
<Resource Include="Assets\ro-favicon.ico" />
<Content Include="NLog.config"> <Content Include="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
@@ -561,7 +560,7 @@
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)"> <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
<Output TaskParameter="Assemblies" ItemName="myAssemblyInfo" /> <Output TaskParameter="Assemblies" ItemName="myAssemblyInfo" />
</GetAssemblyIdentity> </GetAssemblyIdentity>
<Exec Command="nuget pack RomeOnlinePartner.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory $(OutDir) -BasePath $(OutDir)" /> <Exec Command="nuget pack ProManagerPartner.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory $(OutDir) -BasePath $(OutDir)" />
<Exec Command="squirrel --releasify $(OutDir)RomeOnlinePartner.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" /> <Exec Command="squirrel --releasify $(OutDir)ProManagerPartner.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" />
</Target> </Target>
</Project> </Project>

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
[JsonConverter(typeof(Utils.JsonPathConverter))] [JsonConverter(typeof(Utils.JsonPathConverter))]
public class Bodyshop : DTO_Base public class Bodyshop : DTO_Base

View File

@@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public abstract class DTO_Base : INotifyPropertyChanged public abstract class DTO_Base : INotifyPropertyChanged
{ {

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner namespace ProManagerPartner
{ {
public enum SourceSystem public enum SourceSystem
{ {
@@ -14,7 +14,7 @@ namespace RomeOnlinePartner
} }
} }
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class DTO_QueueItem : DTO_Base public class DTO_QueueItem : DTO_Base
{ {

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class Monitor : DTO_Base public class Monitor : DTO_Base
{ {

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class QbRequestItem : DTO_Base public class QbRequestItem : DTO_Base
{ {

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class QbResponseItem : DTO_Base public class QbResponseItem : DTO_Base
{ {

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml.Linq; using System.Xml.Linq;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class QbXmlResponse : DTO_Base public class QbXmlResponse : DTO_Base
{ {

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace RomeOnlinePartner.Models namespace ProManagerPartner.Models
{ {
public class ScanResponseItem : DTO_Base public class ScanResponseItem : DTO_Base
{ {

View File

@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata> <metadata>
<id>RomeOnlinePartner</id> <id>ProManagerPartner</id>
<version>1.0.0</version> <version>1.0.0</version>
<title>Rome Online Partner</title> <title>ProManager Partner</title>
<authors>ImEX Systems Inc.</authors> <authors>ImEX Systems Inc.</authors>
<owners></owners> <owners></owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://s3.us-east-2.amazonaws.com/partner.romeonline.io/favicon.ico</iconUrl> <iconUrl>https://s3.us-east-2.amazonaws.com/partner.promanager.web-est.com/favicon.ico</iconUrl>
<copyright>ImEX Systems Inc.</copyright> <copyright>ImEX Systems Inc.</copyright>
<description>Rome Online Partner</description> <description>ProManager Partner</description>
</metadata> </metadata>
<files> <files>
<file src="*.*" target="lib\net45\" exclude="*.pdb;*.nupkg;*.vshost.*"/> <file src="*.*" target="lib\net45\" exclude="*.pdb;*.nupkg;*.vshost.*"/>

View File

@@ -7,11 +7,11 @@ using System.Windows;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("Rome Online Partner")] [assembly: AssemblyTitle("ProManager Partner")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Rome Technologies")] [assembly: AssemblyCompany("Web-Est")]
[assembly: AssemblyProduct("Rome Online Partner")] [assembly: AssemblyProduct("ProManager Partner")]
[assembly: AssemblyCopyright("Copyright © ImEX Systems Inc.")] [assembly: AssemblyCopyright("Copyright © ImEX Systems Inc.")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]

View File

@@ -8,7 +8,7 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace RomeOnlinePartner.Properties { namespace ProManagerPartner.Properties {
using System; using System;
@@ -39,7 +39,7 @@ namespace RomeOnlinePartner.Properties {
public static global::System.Resources.ResourceManager ResourceManager { public static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RomeOnlinePartner.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProManagerPartner.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
@@ -466,7 +466,7 @@ namespace RomeOnlinePartner.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Please do not close Rome Online or Rome Partner during the connection process.. /// Looks up a localized string similar to Please do not close ProManager or ProManager Partner during the connection process..
/// </summary> /// </summary>
public static string Msg_QbConnection_Msg { public static string Msg_QbConnection_Msg {
get { get {
@@ -511,7 +511,7 @@ namespace RomeOnlinePartner.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Login - Rome Online Partner. /// Looks up a localized string similar to Login - ProManager Partner.
/// </summary> /// </summary>
public static string Title_Login { public static string Title_Login {
get { get {
@@ -520,7 +520,7 @@ namespace RomeOnlinePartner.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Rome Online Partner. /// Looks up a localized string similar to ProManager Partner.
/// </summary> /// </summary>
public static string Title_Login_Header { public static string Title_Login_Header {
get { get {
@@ -529,7 +529,7 @@ namespace RomeOnlinePartner.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Rome Online Partner | Rome Technologies. /// Looks up a localized string similar to ProManager Partner | Web-Est.
/// </summary> /// </summary>
public static string Title_Main { public static string Title_Main {
get { get {

View File

@@ -253,7 +253,7 @@
<value>QuickBooks Connection</value> <value>QuickBooks Connection</value>
</data> </data>
<data name="Msg_QbConnection_Msg" xml:space="preserve"> <data name="Msg_QbConnection_Msg" xml:space="preserve">
<value>Please do not close Rome Online or Rome Partner during the connection process.</value> <value>Please do not close ProManager or ProManager Partner during the connection process.</value>
</data> </data>
<data name="Msg_QbConnection_Title" xml:space="preserve"> <data name="Msg_QbConnection_Title" xml:space="preserve">
<value>QuickBooks Connection Request</value> <value>QuickBooks Connection Request</value>
@@ -268,13 +268,13 @@
<value>Password</value> <value>Password</value>
</data> </data>
<data name="Title_Login" xml:space="preserve"> <data name="Title_Login" xml:space="preserve">
<value>Login - Rome Online Partner</value> <value>Login - ProManager Partner</value>
</data> </data>
<data name="Title_Login_Header" xml:space="preserve"> <data name="Title_Login_Header" xml:space="preserve">
<value>Rome Online Partner</value> <value>ProManager Partner</value>
</data> </data>
<data name="Title_Main" xml:space="preserve"> <data name="Title_Main" xml:space="preserve">
<value>Rome Online Partner | Rome Technologies</value> <value>ProManager Partner | Web-Est</value>
</data> </data>
<data name="Username" xml:space="preserve"> <data name="Username" xml:space="preserve">
<value>Username</value> <value>Username</value>

View File

@@ -8,7 +8,7 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace RomeOnlinePartner.Properties { namespace ProManagerPartner.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

View File

@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="RomeOnlinePartner.Properties" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ProManagerPartner.Properties" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="Username" Type="System.String" Scope="User"> <Setting Name="Username" Type="System.String" Scope="User">

View File

@@ -1,7 +1 @@
21080F2A8D8BEC1B0EAD01141BBBC56A69E120EB RomeOnlinePartner-1.1.0-full.nupkg 5957137 8D61826DD6D6B26138D14962BBA992259C9A2FE9 ProManagerPartner-1.1.3-full.nupkg 5998889
9E08BA6C1E2DB1295696713165AB25AADE94875F RomeOnlinePartner-1.1.1-delta.nupkg 98643
26F725C795EC01893BC36E5FC59F4ADFD390F88A RomeOnlinePartner-1.1.1-full.nupkg 5958856
637F563749852E516AF4D41E30324FB04499D205 RomeOnlinePartner-1.1.2-delta.nupkg 88517
A1110AE679B0ABAD08129B41C12399C3C588ABC9 RomeOnlinePartner-1.1.2-full.nupkg 5962013
BF0B893BC82219F385D83F44994D26AE0D3619CF RomeOnlinePartner-1.1.3-delta.nupkg 64235
DB8DCD6BD2B3F4CA790A8B25E8DD495144D1D196 RomeOnlinePartner-1.1.3-full.nupkg 5967310

View File

@@ -10,7 +10,7 @@ using GraphQL;
using Newtonsoft; using Newtonsoft;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class ARMSRoData public static class ARMSRoData
{ {

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using FileHelpers; using FileHelpers;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.IO; using System.IO;
using RestSharp; using RestSharp;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class AppMetaData public static class AppMetaData
{ {
@@ -22,7 +22,7 @@ namespace RomeOnlinePartner.Utils
public static Boolean IsTest = false; public static Boolean IsTest = false;
private static string workingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); private static string workingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
public static string globalScriptsPath = @"C:\Rome\PartnerScripts"; public static string globalScriptsPath = @"C:\Web-Est\PartnerScripts";
public static RestClient RestClient; public static RestClient RestClient;

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class ApplicationExceptionHandler public static class ApplicationExceptionHandler
{ {

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Firebase.Auth; using Firebase.Auth;
using System.Timers; using System.Timers;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class Auth public static class Auth
{ {

View File

@@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace RomeOnlinePartner namespace ProManagerPartner
{ {
public class BaseModel : INotifyPropertyChanged public class BaseModel : INotifyPropertyChanged
{ {

View File

@@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace RomeOnlinePartner namespace ProManagerPartner
{ {
public abstract class BaseViewModel : INotifyPropertyChanged public abstract class BaseViewModel : INotifyPropertyChanged
{ {

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF; using DotNetDBF;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
class CCCPartsPriceChange class CCCPartsPriceChange
{ {

View File

@@ -4,9 +4,9 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public class CIECAMonitor : FileSystemWatcher public class CIECAMonitor : FileSystemWatcher
{ {

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF; using DotNetDBF;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils.Decoder namespace ProManagerPartner.Utils.Decoder
{ {
class EstimateDecoder class EstimateDecoder
{ {

View File

@@ -1,4 +1,4 @@
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class DiskScan public static class DiskScan
{ {

View File

@@ -11,7 +11,7 @@ using System.Net.Http;
using Newtonsoft; using Newtonsoft;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class GraphQL public static class GraphQL
{ {

View File

@@ -1,9 +1,9 @@
<Window x:Class="RomeOnlinePartner.Utils.Growls.GrowlNotification" <Window x:Class="ProManagerPartner.Utils.Growls.GrowlNotification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:RomeOnlinePartner.Utils.Growls" xmlns:local="clr-namespace:ProManagerPartner.Utils.Growls"
mc:Ignorable="d" mc:Ignorable="d"
SizeToContent="WidthAndHeight" SizeToContent="WidthAndHeight"
AllowsTransparency="True" AllowsTransparency="True"
@@ -11,7 +11,7 @@
ShowInTaskbar="False" ShowInTaskbar="False"
Topmost="True" Topmost="True"
UseLayoutRounding="True" UseLayoutRounding="True"
Title="RomeOnlinePartner Notification" Title="ProManagerPartner Notification"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}" TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular" TextElement.FontWeight="Regular"
@@ -57,7 +57,7 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Image Grid.RowSpan="2" <Image Grid.RowSpan="2"
Source="../../ro-favicon.ico" Source="../../favicon.ico"
Margin="4" Margin="4"
Width="24"></Image> Width="24"></Image>
<TextBlock Grid.Column="1" <TextBlock Grid.Column="1"

View File

@@ -15,7 +15,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Shapes; using System.Windows.Shapes;
namespace RomeOnlinePartner.Utils.Growls namespace ProManagerPartner.Utils.Growls
{ {
public partial class GrowlNotification public partial class GrowlNotification
{ {

View File

@@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Growls namespace ProManagerPartner.Utils.Growls
{ {
public class Notification : INotifyPropertyChanged public class Notification : INotifyPropertyChanged
{ {

View File

@@ -8,12 +8,12 @@ using System.Xml.Linq;
using Newtonsoft; using Newtonsoft;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
using ToastNotifications.Messages; using ToastNotifications.Messages;
using System.Threading; using System.Threading;
using System.Reflection; using System.Reflection;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class HTTPServer public static class HTTPServer
{ {
@@ -29,7 +29,7 @@ namespace RomeOnlinePartner.Utils
//QuickBooks Execution Routes. //QuickBooks Execution Routes.
Route.Add("/qb/", (req, res, props) => Route.Add("/qb/", (req, res, props) =>
{ {
hlog("Received a QuickBooks request from Rome Online"); hlog("Received a QuickBooks request from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -41,7 +41,7 @@ namespace RomeOnlinePartner.Utils
//Pinging based routes. //Pinging based routes.
Route.Add("/ping/", (req, res, props) => Route.Add("/ping/", (req, res, props) =>
{ {
hlog("Received a ping from Rome Online"); hlog("Received a ping from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -52,7 +52,7 @@ namespace RomeOnlinePartner.Utils
//FileScanning Routes //FileScanning Routes
Route.Add("/scan/", (req, res, props) => Route.Add("/scan/", (req, res, props) =>
{ {
hlog("Received a scan request from Rome Online"); hlog("Received a scan request from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -61,7 +61,7 @@ namespace RomeOnlinePartner.Utils
, "POST"); , "POST");
Route.Add("/import/", (req, res, props) => Route.Add("/import/", (req, res, props) =>
{ {
hlog("Received an import request from Rome Online"); hlog("Received an import request from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -71,7 +71,7 @@ namespace RomeOnlinePartner.Utils
Route.Add("/oec/", (req, res, props) => Route.Add("/oec/", (req, res, props) =>
{ {
hlog("Received an OEC from Rome Online"); hlog("Received an OEC from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -81,7 +81,7 @@ namespace RomeOnlinePartner.Utils
Route.Add("/ppc/", (req, res, props) => Route.Add("/ppc/", (req, res, props) =>
{ {
hlog("Received an PPC from Rome Online"); hlog("Received an PPC from ProManager");
res.WithCORS(); res.WithCORS();
res.Close(); res.Close();
}, "OPTIONS"); }, "OPTIONS");
@@ -118,17 +118,17 @@ namespace RomeOnlinePartner.Utils
hlog = HttpLogger; hlog = HttpLogger;
try try
{ {
hlog("Rome Online connection server starting..."); hlog("ProManager connection server starting...");
HttpServer.ListenAsync(1337, token, Route.OnHttpRequestAsync).Wait(); HttpServer.ListenAsync(1337, token, Route.OnHttpRequestAsync).Wait();
} }
catch (Exception Ex) catch (Exception Ex)
{ {
logger.Fatal("Unable to start HTTP server. " + Ex.ToString()); logger.Fatal("Unable to start HTTP server. " + Ex.ToString());
hlog("Rome Online connection server could not start. Please restart the partner to try again."); hlog("ProManager connection server could not start. Please restart the partner to try again.");
App.Current.Dispatcher.Invoke(() => App.Current.Dispatcher.Invoke(() =>
{ {
string msg = "Unable to connect to Rome Online Web App. Please ensure your firewall allows the connection."; string msg = "Unable to connect to ProManager Web App. Please ensure your firewall allows the connection.";
Utils.Notifications.notifier.ShowError(msg); Utils.Notifications.notifier.ShowError(msg);
}); });
Utils.SquirrelAwareHelper.AddHttpExcetion(); Utils.SquirrelAwareHelper.AddHttpExcetion();
@@ -197,7 +197,7 @@ namespace RomeOnlinePartner.Utils
{ {
try try
{ {
hlog("Processing QuickBooks request. Rome Online Record ID:" + request.Id); hlog("Processing QuickBooks request. ProManager Record ID:" + request.Id);
XDocument response = XDocument.Parse(QuickBooksInterop.ProcessQBXmlRequestUnManaged(request.QbXML)); XDocument response = XDocument.Parse(QuickBooksInterop.ProcessQBXmlRequestUnManaged(request.QbXML));
QbXmlResponse ResponseStatus = QuickBooksInterop.ParseResponseXml(response); QbXmlResponse ResponseStatus = QuickBooksInterop.ParseResponseXml(response);

View File

@@ -5,14 +5,14 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using RomeOnlinePartner.Utils; using ProManagerPartner.Utils;
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
using RomeOnlinePartner.Utils.Growls; using ProManagerPartner.Utils.Growls;
using GraphQL; using GraphQL;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using ToastNotifications.Messages; using ToastNotifications.Messages;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class JobProcessingQueue public static class JobProcessingQueue
{ {

View File

@@ -7,7 +7,7 @@ using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
class JsonPathConverter : JsonConverter class JsonPathConverter : JsonConverter
{ {

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class JsonExtensions public static class JsonExtensions
{ {

View File

@@ -6,7 +6,7 @@ using System.Security;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class LoginHelpers public static class LoginHelpers
{ {

View File

@@ -9,7 +9,7 @@ using ToastNotifications.Position;
using ToastNotifications.Messages; using ToastNotifications.Messages;
using System.Windows; using System.Windows;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class Notifications public static class Notifications
{ {

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF; using DotNetDBF;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class OEConnection public static class OEConnection
{ {

View File

@@ -10,7 +10,7 @@ using System.IO;
using System.Timers; using System.Timers;
using RestSharp; using RestSharp;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class PPGMixData public static class PPGMixData
{ {
@@ -194,7 +194,7 @@ v_paint_codes
new XElement("TransactionDate", DateTime.Now.ToString("yyyy-MM-hh:mm:ss")) new XElement("TransactionDate", DateTime.Now.ToString("yyyy-MM-hh:mm:ss"))
), ),
new XElement("Product", new XElement("Product",
new XElement("Name", "Rome Online"), new XElement("Name", "ProManager"),
new XElement("Version", null) new XElement("Version", null)
) )

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class PowerModeEventHandler public static class PowerModeEventHandler
{ {

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Queries namespace ProManagerPartner.Utils.Queries
{ {
class JobsQueries class JobsQueries
{ {

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Queries namespace ProManagerPartner.Utils.Queries
{ {
public static class VehicleQueries public static class VehicleQueries
{ {

View File

@@ -6,12 +6,12 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml; using System.Xml;
using System.Xml.Linq; using System.Xml.Linq;
using RomeOnlinePartner.Utils.Growls; using ProManagerPartner.Utils.Growls;
using Interop.QBFC16; using Interop.QBFC16;
using Interop.QBXMLRP2; using Interop.QBXMLRP2;
using ToastNotifications.Messages; using ToastNotifications.Messages;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class QuickBooksInterop public static class QuickBooksInterop
{ {
@@ -20,8 +20,8 @@ namespace RomeOnlinePartner.Utils
private static RequestProcessor2 rp; private static RequestProcessor2 rp;
private static string maxVersion; private static string maxVersion;
private static QBFileMode mode = QBFileMode.qbFileOpenDoNotCare; private static QBFileMode mode = QBFileMode.qbFileOpenDoNotCare;
private static string appID = "RomePartner"; private static string appID = "ProManagerPartner";
private static string appName = "RomeOnlinePartner"; private static string appName = "ProManagerPartner";
private static GrowlNotification Growler; private static GrowlNotification Growler;
public static void ConnectToQuickBooks() public static void ConnectToQuickBooks()

View File

@@ -1,7 +1,7 @@
using System; using System;
using System.Windows.Input; using System.Windows.Input;
namespace RomeOnlinePartner namespace ProManagerPartner
{ {
public class RelayCommand : ICommand public class RelayCommand : ICommand
{ {

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using Microsoft.Win32.TaskScheduler; using Microsoft.Win32.TaskScheduler;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class ScheduledTaskConfig public static class ScheduledTaskConfig
{ {
@@ -19,12 +19,12 @@ namespace RomeOnlinePartner.Utils
try try
{ {
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export"); Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export");
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection Export");
} }
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"); Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ProManager Partner - Paint Scale Connection Export", QuickTriggerType.Hourly, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\PaintScaleExport.ps1");
newTask.Run(); newTask.Run();
@@ -41,12 +41,12 @@ namespace RomeOnlinePartner.Utils
try try
{ {
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS"); Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - ARMS");
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - ARMS");
} }
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("Rome Online Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1"); Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ProManager Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1");
newTask.Run(); newTask.Run();

View File

@@ -1,7 +1,7 @@
#Verify that the partner is running. If not, strat it. #Verify that the partner is running. If not, strat it.
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){ if((Get-Process -Name ProManagerPartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe" & "$Env:USERPROFILE\AppData\Local\ProManagerPartner\ProManagerPartner.exe"
} }
$PSversion = $PSVersionTable.PSVersion.Major $PSversion = $PSVersionTable.PSVersion.Major
@@ -11,7 +11,7 @@ function v2 {
# Post request to the partner to trigger the export. # Post request to the partner to trigger the export.
Invoke-WebRequest -Uri http://localhost:1337/arms/rodata/ -Method POST Invoke-WebRequest -Uri http://localhost:1337/arms/rodata/ -Method POST
#Start the Arms Uploader. #Start the Arms Uploader.
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe" Start-Process -FilePath "C:\Web-Est\Applications\ARMSUploader\ROUpload.exe"
} }
function v1 { function v1 {
@@ -23,7 +23,7 @@ ResponseStream = $Response.GetResponseStream()
ReadStream = New-Object System.IO.StreamReader $ResponseStream ReadStream = New-Object System.IO.StreamReader $ResponseStream
#Data=$ReadStream.ReadToEnd() #Data=$ReadStream.ReadToEnd()
#Start the Arms Uploader. #Start the Arms Uploader.
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe" Start-Process -FilePath "C:\Web-Est\Applications\ARMSUploader\ROUpload.exe"
} }

View File

@@ -1,7 +1,7 @@
#Verify that the partner is running. If not, strat it. #Verify that the partner is running. If not, strat it.
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){ if((Get-Process -Name ProManagerPartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe" & "$Env:USERPROFILE\AppData\Local\ProManagerPartner\ProManagerPartner.exe"
} }
$PSversion = $PSVersionTable.PSVersion.Major $PSversion = $PSVersionTable.PSVersion.Major

View File

@@ -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]
[HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open\command] [HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open\command]
@="\"C:\\Rome\\PartnerScripts\\imexmedia.bat\" %1" @="\"C:\\Web-Est\\PartnerScripts\\imexmedia.bat\" %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001 "ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001

View File

@@ -9,7 +9,7 @@ using Microsoft.Win32.TaskScheduler;
using System.IO; using System.IO;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class SquirrelAwareHelper public static class SquirrelAwareHelper
{ {
@@ -69,10 +69,10 @@ namespace RomeOnlinePartner.Utils
//The paint scale accidentally got added to all people running v31. This was added to remove it. //The paint scale accidentally got added to all people running v31. This was added to remove it.
try try
{ {
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection"); Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection");
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection");
} }
} }
catch (Exception ex) catch (Exception ex)
@@ -150,10 +150,10 @@ namespace RomeOnlinePartner.Utils
mgr.RemoveShortcutForThisExe(); mgr.RemoveShortcutForThisExe();
try try
{ {
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. Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export"); //This is the old scale path. This was accidentally added for everyone.
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection");
} }
} }
catch (Exception ex) catch (Exception ex)
@@ -162,10 +162,10 @@ namespace RomeOnlinePartner.Utils
} }
try try
{ {
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export"); Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export");
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection Export");
} }
} }
catch (Exception ex) catch (Exception ex)
@@ -174,10 +174,10 @@ namespace RomeOnlinePartner.Utils
} }
try try
{ {
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS"); Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - ARMS");
if (existingTask != null) if (existingTask != null)
{ {
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS"); TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - ARMS");
} }
} }
catch (Exception ex) catch (Exception ex)

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Input; using System.Windows.Input;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public class OpenMainWindowCommand : ICommand public class OpenMainWindowCommand : ICommand
{ {

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Data; using System.Windows.Data;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public class BoolVisibilityConverter : IValueConverter public class BoolVisibilityConverter : IValueConverter
{ {

View File

@@ -10,7 +10,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
namespace RomeOnlinePartner.Utils namespace ProManagerPartner.Utils
{ {
public static class UpdateHandler public static class UpdateHandler
{ {
@@ -35,7 +35,7 @@ namespace RomeOnlinePartner.Utils
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public const string UpdatePath = @"http://partner.romeonline.io/"; public const string UpdatePath = @"http://partner.promanager.web-est.com/";
public static async Task<bool> AreUpdatesAvailable() public static async Task<bool> AreUpdatesAvailable()
{ {

View File

@@ -2,7 +2,7 @@
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class LoginViewModel : BaseViewModel public partial class LoginViewModel : BaseViewModel
{ {

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using System.Windows; using System.Windows;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class LoginViewModel : BaseViewModel public partial class LoginViewModel : BaseViewModel
{ {

View File

@@ -6,7 +6,7 @@ using System.Security;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class LoginViewModel : BaseViewModel public partial class LoginViewModel : BaseViewModel
{ {

View File

@@ -2,7 +2,7 @@
using System.Windows; using System.Windows;
using System.Windows.Input; using System.Windows.Input;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class MainViewModel : BaseViewModel public partial class MainViewModel : BaseViewModel
{ {

View File

@@ -1,5 +1,5 @@
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
using RomeOnlinePartner.Utils.Growls; using ProManagerPartner.Utils.Growls;
using GraphQL.Client; using GraphQL.Client;
using GraphQL; using GraphQL;
using Newtonsoft.Json; using Newtonsoft.Json;
@@ -16,7 +16,7 @@ using Firebase.Auth;
using ToastNotifications.Messages; using ToastNotifications.Messages;
using Microsoft.Win32; using Microsoft.Win32;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class MainViewModel : BaseViewModel public partial class MainViewModel : BaseViewModel
{ {
@@ -109,7 +109,7 @@ namespace RomeOnlinePartner.ViewModels
} }
// string msg = "An update to Rome Online Partner is Available. It will be automatically downloaded and applied."; // string msg = "An update to ProManager Partner is Available. It will be automatically downloaded and applied.";
// Utils.Notifications.notifier.ShowInformation(msg); // Utils.Notifications.notifier.ShowInformation(msg);
// logger.Debug("Updates are available! Installing."); // logger.Debug("Updates are available! Installing.");
// try // try
@@ -399,7 +399,7 @@ namespace RomeOnlinePartner.ViewModels
logger.Trace(newLine); logger.Trace(newLine);
} }
private FirebaseAuthLink al = RomeOnlinePartner.Utils.Auth.authlink; private FirebaseAuthLink al = ProManagerPartner.Utils.Auth.authlink;
public async Task TestGql() public async Task TestGql()
{ {

View File

@@ -4,11 +4,11 @@ using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using RomeOnlinePartner.Utils.Growls; using ProManagerPartner.Utils.Growls;
using RomeOnlinePartner.Models; using ProManagerPartner.Models;
using System.Reflection; using System.Reflection;
namespace RomeOnlinePartner.ViewModels namespace ProManagerPartner.ViewModels
{ {
public partial class MainViewModel : BaseViewModel public partial class MainViewModel : BaseViewModel
{ {

View File

@@ -1,16 +1,16 @@
<Window x:Class="RomeOnlinePartner.Views.Login" <Window x:Class="ProManagerPartner.Views.Login"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:RomeOnlinePartner.Views" xmlns:local="clr-namespace:ProManagerPartner.Views"
xmlns:vm="clr-namespace:RomeOnlinePartner.ViewModels" xmlns:vm="clr-namespace:ProManagerPartner.ViewModels"
mc:Ignorable="d" mc:Ignorable="d"
Title="{x:Static p:Resources.Title_Login}" Title="{x:Static p:Resources.Title_Login}"
Height="325" Height="325"
Width="475" Width="475"
xmlns:p="clr-namespace:RomeOnlinePartner.Properties" xmlns:p="clr-namespace:ProManagerPartner.Properties"
xmlns:util="clr-namespace:RomeOnlinePartner.Utils" xmlns:util="clr-namespace:ProManagerPartner.Utils"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}" TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular" TextElement.FontWeight="Regular"
@@ -49,14 +49,9 @@
<StackPanel> <StackPanel>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Image Source="/Assets/ro-favicon.png" <Image Source="/Assets/logo.png"
Height="48" Height="48"
Width="48"
VerticalAlignment="Center" /> VerticalAlignment="Center" />
<TextBlock Text="{x:Static p:Resources.Title_Login_Header}"
Style="{StaticResource MaterialDesignHeadline6TextBlock}"
VerticalAlignment="Center" />
</StackPanel> </StackPanel>
<StackPanel Orientation="Vertical" <StackPanel Orientation="Vertical"

View File

@@ -13,7 +13,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using System.Windows.Shapes; using System.Windows.Shapes;
namespace RomeOnlinePartner.Views namespace ProManagerPartner.Views
{ {
/// <summary> /// <summary>
/// Interaction logic for Login.xaml /// Interaction logic for Login.xaml

View File

@@ -1,13 +1,13 @@
<Window x:Class="RomeOnlinePartner.Views.Main" <Window x:Class="ProManagerPartner.Views.Main"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:p="clr-namespace:RomeOnlinePartner.Properties" xmlns:p="clr-namespace:ProManagerPartner.Properties"
xmlns:properties="clr-namespace:RomeOnlinePartner.Properties" xmlns:properties="clr-namespace:ProManagerPartner.Properties"
xmlns:util="clr-namespace:RomeOnlinePartner.Utils" xmlns:util="clr-namespace:ProManagerPartner.Utils"
xmlns:vm="clr-namespace:RomeOnlinePartner.ViewModels" xmlns:vm="clr-namespace:ProManagerPartner.ViewModels"
xmlns:tb="http://www.hardcodet.net/taskbar" xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d" mc:Ignorable="d"
Title="{x:Static p:Resources.Title_Main}" Title="{x:Static p:Resources.Title_Main}"
@@ -56,7 +56,7 @@
Height="8" /> Height="8" />
<tb:TaskbarIcon DockPanel.Dock="Top" <tb:TaskbarIcon DockPanel.Dock="Top"
IconSource="../assets/ro-favicon.ico" IconSource="../assets/favicon.ico"
DoubleClickCommand="{Binding OpenMainWindowCommand}" DoubleClickCommand="{Binding OpenMainWindowCommand}"
DoubleClickCommandParameter="{Binding ElementName=MainWindow}" DoubleClickCommandParameter="{Binding ElementName=MainWindow}"
PopupActivation="LeftClick" PopupActivation="LeftClick"
@@ -153,13 +153,13 @@
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_RemoveAllPaths}" /> Content="{x:Static p:Resources.Label_RemoveAllPaths}" />
<Separator /> <Separator />
<Button Command="{Binding ConfigurePaintScaleCommand, UpdateSourceTrigger=PropertyChanged}" <!--<Button Command="{Binding ConfigurePaintScaleCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_ConfigurePaintScale}" /> Content="{x:Static p:Resources.Label_ConfigurePaintScale}" />-->
<Button Command="{Binding ConfigureArmsExportCommand, UpdateSourceTrigger=PropertyChanged}" <!--<Button Command="{Binding ConfigureArmsExportCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_ConfigureArmsExport}" /> Content="{x:Static p:Resources.Label_ConfigureArmsExport}" />-->
<!--<Button Command="{Binding TestCommand}" <!--<Button Command="{Binding TestCommand}"
Margin="8" Margin="8"
Content="Test Command" />--> Content="Test Command" />-->
@@ -253,7 +253,7 @@
ContentStringFormat="" ContentStringFormat=""
Grid.Column="1"/> Grid.Column="1"/>
</Grid> </Grid>
<Grid DockPanel.Dock="Top" <!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" /> <ColumnDefinition Width="3*" />
@@ -268,8 +268,8 @@
<Button Command="{Binding BrowseForEmsFolderCommand, UpdateSourceTrigger=PropertyChanged}" <Button Command="{Binding BrowseForEmsFolderCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_BrowseForEmsExport}" Grid.Column="1" /> Content="{x:Static p:Resources.Label_BrowseForEmsExport}" Grid.Column="1" />
</Grid> </Grid>-->
<Grid DockPanel.Dock="Top" <!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" /> <ColumnDefinition Width="3*" />
@@ -285,8 +285,8 @@
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_BrowseForPpcExport}" Content="{x:Static p:Resources.Label_BrowseForPpcExport}"
Grid.Column="1" /> Grid.Column="1" />
</Grid> </Grid>-->
<Grid DockPanel.Dock="Top" <!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" /> <ColumnDefinition Width="3*" />
@@ -301,12 +301,12 @@
<Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}" <Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" Grid.Column="1"/> Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" Grid.Column="1"/>
</Grid> </Grid>-->
<Grid DockPanel.Dock="Top" <!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" /> <ColumnDefinition Width="2*" />
@@ -326,8 +326,8 @@
<Button Command="{Binding BrowseForPaintScaleImportPathCommand, UpdateSourceTrigger=PropertyChanged}" <Button Command="{Binding BrowseForPaintScaleImportPathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_BrowsePaintScaleImportPath}" Grid.Column="2"/> Content="{x:Static p:Resources.Label_BrowsePaintScaleImportPath}" Grid.Column="2"/>
</Grid> </Grid>-->
<Grid DockPanel.Dock="Top" <!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" /> <ColumnDefinition Width="3*" />
@@ -342,7 +342,7 @@
<Button Command="{Binding BrowseForArmsPathPathCommand, UpdateSourceTrigger=PropertyChanged}" <Button Command="{Binding BrowseForArmsPathPathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8" Margin="8"
Content="{x:Static p:Resources.Label_BrowseArmsExportPath}" Grid.Column="1"/> Content="{x:Static p:Resources.Label_BrowseArmsExportPath}" Grid.Column="1"/>
</Grid> </Grid>-->
<TextBox Height="Auto" <TextBox Height="Auto"

View File

@@ -12,7 +12,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using System.Windows.Shapes; using System.Windows.Shapes;
namespace RomeOnlinePartner.Views namespace ProManagerPartner.Views
{ {
/// <summary> /// <summary>
/// Interaction logic for Main.xaml /// Interaction logic for Main.xaml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 5.1 KiB