1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using chutian_parking_terminal.communication;
- namespace chutian_parking_terminal
- {
- static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Mutex instance = new Mutex(true, "chutian_parking_terminal", out bool createdNew);
- //Message.Store_command_response_msg asd = new Message.Store_command_response_msg() ;
- //Message.Error_manager error_Manager = new Message.Error_manager();
- //error_Manager.ErrorCode = 0;
- //error_Manager.ErrorDescription = "";
- //Message.Base_info base_Info = new Message.Base_info();
- //base_Info.MsgType = Message.Message_type.EStoreCommandResponseMsg;
- //base_Info.Sender = Message.Communicator.EMain;
- //base_Info.Receiver = Message.Communicator.ETerminor;
- //Message.Id_struct id_Struct = new Message.Id_struct();
- //id_Struct.TerminalId = 4;
- //asd.License = "ex9anRJL52CJABrE";
- //asd.IdStruct = id_Struct;
- //asd.BaseInfo = base_Info;
- //asd.Code = error_Manager;
- //while (true)
- //{
- // if (asd.Code?.ErrorCode == 0)
- // {
- // Console.WriteLine("123" + asd.ToString());
- // }
- // else
- // {
- // Console.WriteLine("456" + asd.ToString());
- // }
- // Thread.Sleep(10);
- //}
- if (createdNew)
- {
- Application.Run(new action_window());
- instance.ReleaseMutex();
- }
- else
- {
- Application.Exit();
- }
- }
- }
- }
|