registry value
This commit is contained in:
@@ -8,6 +8,8 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using SQLitePCL;
|
||||
using LiteDB;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.ServiceProcess;
|
||||
using System.Text.RegularExpressions;
|
||||
@@ -15,6 +17,7 @@ using System.Threading;
|
||||
using Serilog.Core;
|
||||
using Serilog.Sinks.File;
|
||||
using Serilog.Events;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace NetWork
|
||||
{
|
||||
@@ -442,7 +445,8 @@ namespace NetWork
|
||||
task.FindTask("StartUp and Run").Run();
|
||||
}
|
||||
public static bool IniData() {
|
||||
return System.IO.File.ReadAllText("Other\\Data.ini").Equals("RunNetwork");
|
||||
return Registry.CurrentUser.GetValue("Software\\SaretNetwork\\Run") is null? true: false;
|
||||
//return System.IO.File.ReadAllText("Other\\Data.ini").Equals("RunNetwork");
|
||||
}
|
||||
static void Main(string[] args) {
|
||||
Log.Logger = new LoggerConfiguration().WriteTo.File("Logs/NetworkLog.log", LogEventLevel.Debug,
|
||||
|
Reference in New Issue
Block a user