Пример #1
0
        static void Main(string[] args)
        {
            if (args != null && args.Length > 0 && args.Any(a => a == "doremote") ) {
                RemoteLaunch.RemoteHost host = new RemoteLaunch.RemoteHost();
                int parentID;
                if (!int.TryParse(args[0], out parentID))
                {
                    parentID = 0;
                }

                host.StartUp(parentID);
            } else {
                //we also need to spawn another instance of the app to handle launching the arduino
                //This is a work-around for conflicts casue in the process/subprocess environments between GeckoFX and the Arduino IDE
                if (args == null || args.Length == 0 || args.All(a => a != "skipremote"))
                {
                    LaunchOtherInstance();
                }
                App.Main();
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            if (args != null && args.Length > 0 && args.Any(a => a == "doremote"))
            {
                RemoteLaunch.RemoteHost host = new RemoteLaunch.RemoteHost();
                int parentID;
                if (!int.TryParse(args[0], out parentID))
                {
                    parentID = 0;
                }

                host.StartUp(parentID);
            }
            else
            {
                //we also need to spawn another instance of the app to handle launching the arduino
                //This is a work-around for conflicts casue in the process/subprocess environments between GeckoFX and the Arduino IDE
                if (args == null || args.Length == 0 || args.All(a => a != "skipremote"))
                {
                    LaunchOtherInstance();
                }
                App.Main();
            }
        }