using ManualSoftwareSystem.Inspection_Work;
using ManualSoftwareSystem.Operation_Manual;

namespace ManualSoftwareSystem
{
    internal static class Program
    {
        private static Mutex mutex = null;

        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        
        static void Main()
        {
            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            ApplicationConfiguration.Initialize();
            //Application.Run(new FrmMasterMaintenanceDetail("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test.000"));
            //Application.Run(new FrmMasterMaintenanceNew());
            //Application.Run(new FrmMain());
            //Application.Run(new FrmOperationManualOperator("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test.000"));
            //Application.Run(new FrmOperationInputInformation("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test.000"));
            //Application.Run(new FrmInspectionInformation("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test.000", ""));
            //Application.Run(new FrmOperationManualOperator(string.Empty, string.Empty));
            //Application.Run(new FrmInspectionWorkInput("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test_P_V_I_1_2_3_4_5_20230620102814350.003"));
            //Application.Run(new FrmOperationManualInput("C:\\TOMAS TECH\\Shodensha (Thailand)\\File\\Test_P_V_I_1_2_3_4_5_20230620102814350.003"));

            const string appName = "MyAppName";
            bool createdNew;

            mutex = new Mutex(true, appName, out createdNew);

            if (!createdNew)
            {
                //app is already running! Exiting the application
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FrmOperationManualOperator(string.Empty, string.Empty));


        }
    }
}