You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.7 KiB
57 lines
1.7 KiB
using Module.Common;
|
|
using Module.DB.SQLServerDAL;
|
|
using Module.Plc.Profinet.Tool;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using System.Timers;
|
|
using System.Threading;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using Module.SecsApi.Tcp;
|
|
|
|
namespace ChipGlueDeviceManager
|
|
{
|
|
static class Program
|
|
{
|
|
|
|
// private static System.Timers.Timer timer;
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
|
|
if (!HslCommunication.Authorization.SetAuthorizationCode("e3ef2dd5-2e1e-481d-99fe-452fe6bc00f0"))
|
|
{
|
|
return;
|
|
}
|
|
|
|
// string currentDirectory = AppDomain.CurrentDomain.BaseDirectory;
|
|
// string folderName = "Self-starting";
|
|
// string exePath = Path.Combine(currentDirectory, "SECS_small_ver.exe");
|
|
// AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => null; // ´¦Àí³ÌÐò¼¯½âÎö
|
|
// Process process = new Process();
|
|
// process.StartInfo.FileName = exePath;
|
|
// process.Start();
|
|
System.Diagnostics.Process.Start(Application.StartupPath + "\\Debug20231012\\SECS_small_ver.exe");
|
|
PlcTool.StartColDataThread();
|
|
|
|
CmnHsmsBase.TcpConnect();
|
|
|
|
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new FrmStartMonitor());
|
|
|
|
|
|
Console.ReadLine();
|
|
|
|
}
|
|
|
|
}
|
|
}
|