Ejemplo n.º 1
0
        private void _appServiceConnection_RequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
        {
            if (args.Request.Message.ContainsKey("STATUS"))
            {
                var msg = args.Request.Message["STATUS"];
                Debug.WriteLine("STATUS: " + msg);
            }

            if (args.Request.Message.ContainsKey("DONE"))
            {
                var axis = Convert.ToInt32(args.Request.Message["DONE"]);
                Debug.WriteLine($"FINISHED {axis}");
                switch (axis)
                {
                case 0: XAxis.Completed(); break;

                case 1: YAxis.Completed(); break;

                case 2: CAxis.Completed(); break;

                case 3: PlaceAxis.Completed(); break;

                case 4: SolderAxis.Completed(); break;
                }
            }
        }