Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
787ca4a
13h 09-12-2019
diamondloves85 Dec 9, 2019
03aa4c8
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Dec 9, 2019
2d1bda3
10-12
diamondloves85 Dec 10, 2019
0badc31
update code
datnt-97 Dec 10, 2019
ef43d11
update
datnt-97 Dec 10, 2019
f33a609
update code
datnt-97 Dec 10, 2019
5731231
11-12
diamondloves85 Dec 11, 2019
84ba65a
11-12 New
diamondloves85 Dec 11, 2019
65bc556
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Dec 11, 2019
b5aa78d
update
datnt-97 Dec 11, 2019
ebe757f
update
datnt-97 Dec 12, 2019
c25cdb6
12-12
diamondloves85 Dec 12, 2019
7b34a9a
update
datnt-97 Dec 12, 2019
428757a
update
datnt-97 Dec 12, 2019
075af39
update
datnt-97 Dec 12, 2019
138bdf5
12-12-PM
diamondloves85 Dec 12, 2019
8c057f7
12-12-New
diamondloves85 Dec 12, 2019
a010f11
update
datnt-97 Dec 14, 2019
922dbc2
16-12
diamondloves85 Dec 15, 2019
1adb919
update
datnt-97 Dec 16, 2019
263ccdc
update
datnt-97 Dec 16, 2019
dabc374
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Dec 16, 2019
5533ec1
update scheduler
datnt-97 Dec 16, 2019
bd6aa0b
17-12
diamondloves85 Dec 17, 2019
61a8ea8
17-12 13h44
diamondloves85 Dec 17, 2019
49aba2d
update
datnt-97 Dec 17, 2019
6950dfe
UPDATE
datnt-97 Dec 17, 2019
f0248e1
update
datnt-97 Dec 17, 2019
1acb282
update
datnt-97 Dec 18, 2019
cf97bf0
18-12
diamondloves85 Dec 18, 2019
5ec6d4b
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Dec 18, 2019
0ebf7b3
update UI
datnt-97 Dec 19, 2019
247bf8f
update
datnt-97 Dec 19, 2019
abfd27a
update UI
diamondloves85 Dec 19, 2019
f58fd5b
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Dec 19, 2019
ff99321
update setup
datnt-97 Dec 20, 2019
bbd2c9b
24-12
diamondloves85 Dec 24, 2019
f406482
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Dec 24, 2019
820c91b
update
datnt-97 Dec 25, 2019
e6ac0da
UPDATE
datnt-97 Dec 25, 2019
a649cbb
update
datnt-97 Dec 25, 2019
1703c3c
26-12
diamondloves85 Dec 26, 2019
f0d2153
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Dec 26, 2019
f464d22
update cashinout
datnt-97 Dec 26, 2019
1fe95bf
28-12
diamondloves85 Dec 28, 2019
cdbbb4e
update about
datnt-97 Dec 28, 2019
5a2fe32
6-1-2020
diamondloves85 Jan 6, 2020
78844b3
update
datnt-97 Jan 6, 2020
fe3802b
6-1-2020 PM
diamondloves85 Jan 6, 2020
9424ac3
update code
datnt-97 Jan 6, 2020
0525b10
update
datnt-97 Jan 6, 2020
ec17756
7-1-2020
diamondloves85 Jan 7, 2020
3731f66
update
datnt-97 Jan 7, 2020
90a3267
update 07-1
diamondloves85 Jan 7, 2020
cc833f9
update
diamondloves85 Jan 7, 2020
2b51e3a
Revert
datnt-97 Jan 7, 2020
a2f8fd8
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 7, 2020
a339fb4
update
datnt-97 Jan 7, 2020
32e7247
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 7, 2020
53ab99b
update
datnt-97 Jan 7, 2020
3e40665
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 7, 2020
c20722d
update
datnt-97 Jan 7, 2020
1eb6f62
update
datnt-97 Jan 7, 2020
fe76146
7-1 Final
diamondloves85 Jan 7, 2020
e11bf1c
update
datnt-97 Jan 7, 2020
152862a
update
datnt-97 Jan 8, 2020
3ea6ec1
update
datnt-97 Jan 8, 2020
2a79acc
08-1-2020 - Fix Path License
diamondloves85 Jan 8, 2020
f4b5d40
ReUpdate 08-01
diamondloves85 Jan 8, 2020
61a7d09
Reupdate 2
diamondloves85 Jan 8, 2020
f1d5846
update 17:00 18-1
datnt-97 Jan 8, 2020
e487a1b
update
datnt-97 Jan 8, 2020
ca0801b
09-01-2020
diamondloves85 Jan 9, 2020
f49c22c
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Jan 9, 2020
47d6b8f
update ver 0.4
datnt-97 Jan 9, 2020
42fafcf
update db
datnt-97 Jan 9, 2020
862b5cd
update 10/1
datnt-97 Jan 10, 2020
cb03fa7
update db
datnt-97 Jan 10, 2020
0c6bf1c
update ver 0.5
datnt-97 Jan 10, 2020
88ca500
update
datnt-97 Jan 10, 2020
fc65eca
12-1
diamondloves85 Jan 12, 2020
eb96e4d
update 13/1 12:18
datnt-97 Jan 13, 2020
8260a62
update 13/1 3:52
datnt-97 Jan 13, 2020
e5407c0
13-01
diamondloves85 Jan 13, 2020
4df1757
update
datnt-97 Jan 13, 2020
d2ae255
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Jan 14, 2020
d9e61fc
Revert "13-01"
diamondloves85 Jan 14, 2020
c2a9fe8
fix bug
datnt-97 Jan 14, 2020
0756de5
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Jan 14, 2020
af10184
update
datnt-97 Jan 14, 2020
9489757
update 14/1
datnt-97 Jan 14, 2020
600123d
15-01
diamondloves85 Jan 15, 2020
87ef0f0
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Jan 15, 2020
2004f7d
update
datnt-97 Jan 15, 2020
f49d270
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 15, 2020
b42eddb
Revert "Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTC…
datnt-97 Jan 15, 2020
62bfe65
Revert "update"
datnt-97 Jan 15, 2020
30f7e42
Revert "Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTC…
datnt-97 Jan 15, 2020
6d01ab8
update 1.0.9
datnt-97 Jan 15, 2020
3397523
Merge branch '1.0.9' into Phuoc
datnt-97 Jan 15, 2020
0026375
Revert "Merge branch '1.0.9' into Phuoc"
datnt-97 Jan 15, 2020
b2f5d85
update
datnt-97 Jan 15, 2020
ce61cb8
15-01 - Search
diamondloves85 Jan 15, 2020
782781a
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Jan 16, 2020
dc1697c
16-01
diamondloves85 Jan 16, 2020
08a56a7
16-01 14h00
diamondloves85 Jan 16, 2020
c2fcd63
16-01 15h00
diamondloves85 Jan 16, 2020
6181646
16-01 16h00
diamondloves85 Jan 16, 2020
952285e
update
datnt-97 Jan 16, 2020
fc3fe1f
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 16, 2020
54a7707
update trace
datnt-97 Jan 17, 2020
ee1408a
update trace 2
datnt-97 Jan 17, 2020
ce8a4ac
20-01-2020
diamondloves85 Jan 20, 2020
9273b02
20-01-2020 Lan2
diamondloves85 Jan 20, 2020
e0a4772
20-01-2020 12h00
diamondloves85 Jan 20, 2020
ee88bd5
update version
datnt-97 Jan 20, 2020
d7e199d
update version 2
datnt-97 Jan 20, 2020
23df26b
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 20, 2020
1d1675b
Revert "Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTC…
datnt-97 Jan 20, 2020
db999a9
Revert "update version 2"
datnt-97 Jan 20, 2020
c1074ca
Revert "update version"
datnt-97 Jan 20, 2020
f5f6c68
update trace
datnt-97 Jan 20, 2020
b494a0c
update setup
datnt-97 Jan 20, 2020
8ecca68
20-01-2020 17h00
diamondloves85 Jan 20, 2020
bfdaaf5
update sign
datnt-97 Jan 20, 2020
7956770
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
datnt-97 Jan 20, 2020
260fbd6
update empty
datnt-97 Jan 21, 2020
41d497e
update
datnt-97 Jan 21, 2020
3e21295
Revert "update"
datnt-97 Jan 21, 2020
28c5ad7
update
datnt-97 Jan 21, 2020
96eab05
update 9:30 21/1
datnt-97 Jan 21, 2020
ef775fc
07-02-2020
diamondloves85 Feb 7, 2020
03d0f80
update
datnt-97 Feb 7, 2020
d6e2cd3
07-02-2020 PM
diamondloves85 Feb 7, 2020
ad335c0
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Feb 7, 2020
16c7f9d
10-02-2020
diamondloves85 Feb 10, 2020
3ab9eef
10-02-2020
diamondloves85 Feb 10, 2020
dab703c
21-02-2020
diamondloves85 Feb 21, 2020
bc34bf4
21-02-2020 PM
diamondloves85 Feb 21, 2020
f6e2075
Update db.s3db
diamondloves85 Feb 21, 2020
804d4a2
21-02-2020 Final
diamondloves85 Feb 21, 2020
5ef78f8
update set up
datnt-97 Feb 21, 2020
263ebad
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NPSS\TRANSACTIONSTATISTICAL
diamondloves85 Mar 5, 2020
a04ae34
15/09/2020
diamondloves85 Sep 15, 2020
568c36c
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Sep 15, 2020
a4b572a
1709
diamondloves85 Sep 17, 2020
9b93c84
18/09
diamondloves85 Sep 18, 2020
fd8413b
2809
diamondloves85 Sep 28, 2020
b0d29c2
update
datnt-97 Sep 28, 2020
657e7e7
01102020
diamondloves85 Oct 1, 2020
bb75c10
Merge branch 'Phuoc' of https://github.com/thanhdat121/ToolTCB into P…
diamondloves85 Oct 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .vs/Transaction Statistical/v15/.suo
Binary file not shown.
Binary file modified .vs/Transaction Statistical/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/Transaction Statistical/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/Transaction Statistical/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
Binary file modified .vs/Transaction Statistical/v16/.suo
Binary file not shown.
Binary file modified .vs/Transaction Statistical/v16/Server/sqlite3/storage.ide
Binary file not shown.
Binary file not shown.
Binary file not shown.
438 changes: 438 additions & 0 deletions Transaction Statistical Scheduler/Class/Core.cs

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions Transaction Statistical Scheduler/Installer1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Transaction Statistical Scheduler/Installer1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Threading.Tasks;

namespace Transaction_Statistical_Scheduler
{
[RunInstaller(true)]
public partial class Installer1 : System.Configuration.Install.Installer
{
public Installer1()
{
InitializeComponent();
}
private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e)
{

}
}
}
129 changes: 129 additions & 0 deletions Transaction Statistical Scheduler/Installer1.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="serviceProcessInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 60</value>
</metadata>
<metadata name="serviceInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>
158 changes: 158 additions & 0 deletions Transaction Statistical Scheduler/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
using System;
using System.Configuration.Install;
using System.Linq;
using System.Reflection;
using System.ServiceProcess;

namespace Transaction_Statistical_Scheduler
{
static class Program
{
public static ServiceBase[] ServicesToRun;
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
// args = new string[] { "install" };
// Initialize the service to start
ServicesToRun = new ServiceBase[] { new TransactionStatisticalScheduler() };

// In interactive and debug mode ?
if (Environment.UserInteractive)
{
// In debug mode ?
if (System.Diagnostics.Debugger.IsAttached)
{
// Simulate the services execution
RunInteractiveServices(ServicesToRun);
}
else
{
try
{
bool hasCommands = false;
// Having an install command ?
if (HasCommand(args, "install"))
{
//if (!WriteConfigReg())
//{
// Console.WriteLine("Can't write registry !");
// return;
//}
ManagedInstallerClass.InstallHelper(new String[] { typeof(Program).Assembly.Location });
hasCommands = true;
}
// Having an uninstall command ?
if (HasCommand(args, "uninstall"))
{
ManagedInstallerClass.InstallHelper(new String[] { "/u", typeof(Program).Assembly.Location });
hasCommands = true;
}
if (HasCommand(args, "debug"))
{
RunInteractiveServices(ServicesToRun);
hasCommands = true;
}
// If we don't have commands we print usage message
if (!hasCommands)
{
Console.WriteLine("Usage : {0} [command] [command ...]", Environment.GetCommandLineArgs());
Console.WriteLine("Commands : ");
Console.WriteLine(" - install : Install the services");
Console.WriteLine(" - uninstall : Uninstall the services");
Console.WriteLine(" - debug : Start debug");
}
}
catch (Exception ex)
{
var oldColor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Error : {0}", ex.GetBaseException().Message);
Console.ForegroundColor = oldColor;
}
}
}
else
{
// Normal service execution
ServiceBase.Run(ServicesToRun);
}
}
/// <summary>
/// Run services in interactive mode
/// </summary>
static void RunInteractiveServices(ServiceBase[] servicesToRun)
{

Console.WriteLine();
Console.WriteLine("Start the services in interactive mode.");
Console.WriteLine();

// Get the method to invoke on each service to start it
MethodInfo onStartMethod = typeof(ServiceBase).GetMethod("OnStart", BindingFlags.Instance | BindingFlags.NonPublic);

// Start services loop
foreach (ServiceBase service in servicesToRun)
{
// Console.Title = service.ServiceName;
Console.Write("Starting {0} ... \n", service.ServiceName);
onStartMethod.Invoke(service, new object[] { new string[] { } });
Console.WriteLine("Started");
}

// // Waiting the end
// Console.WriteLine();
// Console.WriteLine("Enter function or exit to stop services et finish process...");
//// DebugTest.ReadConmand();
// Console.WriteLine();

// // Get the method to invoke on each service to stop it
// MethodInfo onStopMethod = typeof(ServiceBase).GetMethod("OnStop", BindingFlags.Instance | BindingFlags.NonPublic);

// // Stop loop
// foreach (ServiceBase service in servicesToRun)
// {
// InitParametar.WriteLogApplication( "Stopping " + service.ServiceName + " ...", true, false);
// onStopMethod.Invoke(service, null);
// InitParametar.WriteLogApplication(service.ServiceName + " Stopped", false, false);
// }

// InitParametar.WriteLogApplication("\nAll services are stopped.", false, true);
// // Waiting a key press to not return to VS directly
// if (System.Diagnostics.Debugger.IsAttached)
// {
// Console.WriteLine();
// Console.Write("=== Press a key to quit ===");
// Console.ReadKey();
// }
}
/// <summary>
/// Helper for check if we are a command in the command line arguments
/// </summary>
static bool HasCommand(String[] args, String command)
{
if (args == null || args.Length == 0 ) return false;
return args.Any(a => String.Equals(a, command, StringComparison.OrdinalIgnoreCase));
}
static bool WriteConfigReg()
{
try
{
if (!RegistryCus.CreateSubKey(@"SOFTWARE", "Wincor Nixdorf")) return false;
if (!RegistryCus.CreateSubKey(@"SOFTWARE\Wincor Nixdorf", "BSI")) return false;
if (!RegistryCus.CreateSubKey(@"SOFTWARE\Wincor Nixdorf\BSI", "FDM_AGENT")) return false;
if (string.IsNullOrEmpty(RegistryCus.GetValue(@"SOFTWARE\Wincor Nixdorf\BSI\FDM_AGENT", "TerminalID"))) RegistryCus.WriteValue(@"SOFTWARE\Wincor Nixdorf\BSI\FDM_AGENT", "TerminalID", "88888888");
//string file = @"c:\windows\temp\fdm.reg";
//Process regeditProcess = Process.Start("regedit.exe", "/s \"" + file + "\"");
//regeditProcess.WaitForExit();
return true;
}
catch (Exception ex)
{
InitParametar.Send_Error(ex.ToString(), MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name);
}
return false;
}
}
}
Loading