Beispiel #1
0
        static void Main(string[] args)
        {
            Thread.CurrentThread.Name = "NeoMainThread";

            InitializeBeHwApiLog();



            UserStartupMessage.SendUserStartupMessageToBeijerShell("Loading Files");
            if (!StopWatchCF.Silent)
            {
                StopWatchCF.Send("Starting Project");
            }
            StopWatchCF.SetTimestamp("***** Project Startup Time *****");
            while (ProcessExplorer.WaitForAttachDebugger)
            {
                Thread.Sleep(1000);
            }
            IsCompiledForCE = true;
            IsCompiledForDesktopWindowsPanel = false;

            Instance = new Globals();
            if (!Instance.CheckIfApplicationCanRun())
            {
                return;
            }

            string executingAssemblyName = Assembly.GetExecutingAssembly().FullName;
            string executablePath        = typeof(Globals).Module.FullyQualifiedName;

            Instance.Go(executingAssemblyName, executablePath, args, new string[] { "Expressions", "Tags", "AlarmServer", "Security", "Rezonans", "RS232", "WebServer", "Tablolar", "Test" }, new string[] {}, () => Screen1);
        }
        static void Main(string[] args)
        {
            Thread.CurrentThread.Name = "NeoMainThread";

            InitializeBeHwApiLog();



            UserStartupMessage.SendUserStartupMessageToBeijerShell("Loading Files");
            if (!StopWatchCF.Silent)
            {
                StopWatchCF.Send("Starting Project");
            }
            StopWatchCF.SetTimestamp("***** Project Startup Time *****");
            while (ProcessExplorer.WaitForAttachDebugger)
            {
                Thread.Sleep(1000);
            }
            IsCompiledForCE = true;
            IsCompiledForDesktopWindowsPanel = false;

            Instance = new Globals();
            if (!Instance.CheckIfApplicationCanRun())
            {
                return;
            }

            string executingAssemblyName = Assembly.GetExecutingAssembly().FullName;
            string executablePath        = typeof(Globals).Module.FullyQualifiedName;

            Instance.Go(executingAssemblyName, executablePath, args, new string[] { "Tags", "AlarmServer", "MultipleLanguages", "Expressions", "LicenseRootComponent", "ProjectConfiguration", "Security", "SntpClientRootComponent", "Controller2", "TestingFilterScript", "AutomaticWashingScript", "DryingScript", "BlinkScript", "CycleTimerScript", "PrewashScript", "WashingScript", "WashDryingScript", "BuzzerScript", "ManuelWashingScript", "PressureCalibrationScript", "ProjectImages" }, new string[] {}, () => HomeScreen);
        }