Ejemplo n.º 1
0
        private object SendData(CEnum2.EnumToCoreEventForSimulator eventName, params object[] args)
        {
            object data = new object();

            object[] send = new object[args.Count()];
            send[0] = ((TextEdit)args[0]).Text;

            for (int i = 1; i < args.Count(); i++)
            {
                if (((TextEdit)args[i]).Name.Contains("Box"))
                {
                    if (((TextEdit)args[i]).Text.Length < 60)
                    {
                        while (true)
                        {
                            ((TextEdit)args[i]).Text += " ";
                            if (((TextEdit)args[i]).Text.Length == 60)
                            {
                                break;
                            }
                        }
                    }
                    else if (((TextEdit)args[i]).Text.Length > 60)
                    {
                        ((TextEdit)args[i]).Text = ((TextEdit)args[i]).Text.Substring(0, 60);
                    }
                }
                send[i] = ((TextEdit)args[i]).Text;
            }
            data = _ref_Conveyor.Execute(CEnum2.UIEventReceiver, (int)eventName, send);

            return(data);
        }
Ejemplo n.º 2
0
        private object SendData(short check, CEnum2.EnumToCoreEventForSimulator eventName, params object[] args)
        {
            object data = new object();

            if (check == 1)
            {
                data = _ref_Sorter.Execute(CEnum2.UIEventReceiver, (int)eventName, args);
            }
            else if (check == 2)
            {
                data = _ref_IPS.Execute(CEnum2.UIEventReceiver, (int)eventName, args);
            }
            else if (check == 3)
            {
                data = _ref_AI.Execute(CEnum2.UIEventReceiver, (int)eventName, args);
            }

            return(data);
        }