|
|
@ -11,6 +11,7 @@ using System.Windows; |
|
|
|
using PJZS.Models; |
|
|
|
using System.Linq; |
|
|
|
using System.IO.MemoryMappedFiles; |
|
|
|
using System.Diagnostics; |
|
|
|
|
|
|
|
namespace PJZS |
|
|
|
{ |
|
|
@ -24,6 +25,13 @@ namespace PJZS |
|
|
|
|
|
|
|
protected override void OnStartup(StartupEventArgs e) |
|
|
|
{ |
|
|
|
|
|
|
|
var pjzsExeList = Process.GetProcessesByName("PJZS"); |
|
|
|
if (pjzsExeList != null && pjzsExeList.Count() > 1) |
|
|
|
{ |
|
|
|
Environment.Exit(Environment.ExitCode); |
|
|
|
} |
|
|
|
|
|
|
|
var gl = new GlobalContext(); |
|
|
|
string userToken = string.Empty; |
|
|
|
#if DEBUG
|
|
|
|