public virtual void Input(input myInput)
    {
        switch (myInput)
        {
            case input._On:
                if (state==input._Off)
                {
                    state = input._On; TurnOn();
                }
                break;
            case input._Off:
                if (state == input._On)
                {
                    state = input._Off;TurnOff();
                }
                break;
            case input._Toggle:
                if (state == input._Off)
                {
                    state = input._On; TurnOn();
                }
                else
                {
                    state = input._Off; TurnOff();
                }
                break;

        }
    }
    void Start()
    {
        //father = GameObject.Find ("images");

        transform.position = new Vector3 (770, 315, 0);
        //		transform.localScale.Scale = father.transform.localScale.Scale;
         GameObject p = GameObject.Find("InputField");
         play = p.GetComponent<input>();
        //player.currentRoom = this;
        //player.tryToGoTo(name);
    }
示例#3
1
 public InputForm(input i)
 {
     InitializeComponent();
     this.dateDateEdit.Properties.MaxValue = input.Now();
     if (i == null)
     {
         i = new input() { date = null };
         IsNew = true;
     }
     bdgInput.DataSource = i;
 }
示例#4
0
        private void updateInput()
        {
            joystick.Poll();
            JoystickState jState = joystick.GetCurrentState();
            buttons = jState.GetButtons();
            dPads = jState.GetPointOfViewControllers();
            analogs = GetAxes(jState);

            input funcButton = Button;
            input funcAnalog = Analog;
            input funcDPad = DPad;
            input[] funcArray = new input[] { funcButton, funcAnalog, funcDPad };

            byte[] output = new byte[21];
            for (int i = 0; i < 21; i++)
            {
                if (mapping[i * 2] == 255)
                {
                    continue;
                }
                byte subtype = (byte)(mapping[i * 2] & 0x0F);
                byte type = (byte)((mapping[i * 2] & 0xF0) >> 4);
                byte num = mapping[(i * 2) + 1];
                output[i] = funcArray[type](subtype, num);
            }

            cOutput.A = output[0] != 0;
            cOutput.B = output[1] != 0;
            cOutput.X = output[2] != 0;
            cOutput.Y = output[3] != 0;

            cOutput.DpadUp = output[4] != 0;
            cOutput.DpadDown = output[5] != 0;
            cOutput.DpadLeft = output[6] != 0;
            cOutput.DpadRight = output[7] != 0;

            cOutput.L2 = output[9];
            cOutput.R2 = output[8];

            cOutput.L1 = output[10] != 0;
            cOutput.R1 = output[11] != 0;

            cOutput.L3 = output[12] != 0;
            cOutput.R3 = output[13] != 0;

            cOutput.Home = output[14] != 0;
            cOutput.Start = output[15] != 0;
            cOutput.Back = output[16] != 0;

            cOutput.LY = output[17];
            cOutput.LX = output[18];
            cOutput.RY = output[19];
            cOutput.RX = output[20];
        }
示例#5
0
 Copy(input, output, store => new TimeInterval(store.MessageOriginatingTimeInterval.Left + start, length), null, createSubdirectory, progress, loggingCallback);
示例#6
0
 bool moveToCover(ref input inp)
 {
     //TODO if under heavy fire from static enemy OR ordered to take cover
     return(false);
 }
示例#7
0
     new(async(input, token) =>
 {
示例#8
0
 foreach (var(input, expected) in testCases.EmptyIfNull())
示例#9
0
 => await GetThumbnailAsync(input, output, default, cancellationToken);
示例#10
0
 return(this.RunOrchestration(input, orchestrationName, string.Empty, implementation, onEvent, activities));
    // Update is called once per frame
    protected override void  update()
    {
        for (int i = 0; i < PlayerArrows.Length; i++)
        {
            //get the input
            input input = new input(Vector2.zero, false, false);

            m_PlayerOneTimer += Time.deltaTime;
            m_PlayerTwoTimer += Time.deltaTime;

            if (i == PLAYER_ONE)
            {
                input.Move   = InputManager.getMenuChangeSelection(GameData.Instance.m_PlayerOneInput);
                input.Accept = InputManager.getMenuAcceptDown(GameData.Instance.m_PlayerOneInput);
                input.Back   = InputManager.getMenuBackDown(GameData.Instance.m_PlayerOneInput);

                if (input.Move != Vector2.zero)
                {
                    if (m_PlayerOneTimer < DELAY_TIME)
                    {
                        input.Move = Vector2.zero;
                    }
                    else
                    {
                        m_PlayerOneTimer = 0.0f;
                    }
                }
            }
            else if (i == PLAYER_TWO)
            {
                input.Move   = InputManager.getMenuChangeSelection(GameData.Instance.m_PlayerTwoInput);
                input.Accept = InputManager.getMenuAcceptDown(GameData.Instance.m_PlayerTwoInput);
                input.Back   = InputManager.getMenuBackDown(GameData.Instance.m_PlayerTwoInput);

                if (input.Move != Vector2.zero)
                {
                    if (m_PlayerTwoTimer < DELAY_TIME)
                    {
                        input.Move = Vector2.zero;
                    }
                    else
                    {
                        m_PlayerTwoTimer = 0.0f;
                    }
                }
            }


            if (!PlayerArrows[i].IsMounted)
            {
                //check if moving
                if (input.Move.y > 0.0f)
                {
                    PlayerArrows[i].moveUp();
                    return;
                }
                else if (input.Move.y < 0.0f)
                {
                    PlayerArrows[i].moveDown();
                    return;
                }


                //check if mounting
                if (input.Move.x != 0.0f)
                {
                    Vector2 middleToMount = new Vector2((PlayerArrows[i].SelectionMountPoint.position - PlayerArrows[i].transform.position).x, 0.0f);

                    if (Vector2.Dot(input.Move.normalized, middleToMount.normalized) > 0.0f)
                    {//player swiped towards thier side
                        if (!PlayerArrows[i].IsMounted)
                        {
                            PlayerArrows[i].select();
                            return;
                        }
                    }
                }

                back();
                if (!m_IsActiveMenu)
                {
                    return;
                }
            }
            else
            {
                //check if unmounting
                if (input.Move.x != 0.0f)
                {
                    Vector2 middleToMount = new Vector2((PlayerArrows[i].SelectionMountPoint.position - PlayerArrows[i].transform.position).x, 0.0f);

                    if (Vector2.Dot(input.Move.normalized, middleToMount.normalized) < 0.0f)
                    {    //player swiped away from their side
                        if (PlayerArrows[i].IsMounted)
                        {
                            PlayerArrows[i].deselect();
                        }
                        return;
                    }
                }
            }
        }

        if (PlayerArrows[PLAYER_ONE].getSelection() != PlayerArrows[PLAYER_TWO].getSelection() &&
            PlayerArrows[PLAYER_ONE].IsMounted && PlayerArrows[PLAYER_TWO].IsMounted &&
            InputManager.getMenuAcceptDown())
        {
            //set the characters
            GameData.Instance.PlayerOneCharacter = PlayerArrows[PLAYER_ONE].getCharacterSetting();
            GameData.Instance.PlayerTwoCharacter = PlayerArrows[PLAYER_TWO].getCharacterSetting();

            //reset the menu
            for (int i = 0; i < PlayerArrows.Length; i++)
            {
                PlayerArrows[i].reset();
            }

            //go to next scene
            if (string.Compare(SceneToLoad, "") != 0)
            {
                Application.LoadLevel(SceneToLoad);
            }
        }
    }
示例#12
0
 public async processAndDouble(input : number) : Promise <number>
示例#13
0
文件: Script.cs 项目: 0xCM/Meta.Core
                                     (input, name) => SpecifyParameter(input, name,
                                                                       parameters.Any(p => p.paramName == name)
 ? toString(parameters.First(p => p.paramName == name).paramValue)
示例#14
0
 NoOverlappedReads(
     input,
     encodedValueOffset: 2,
示例#15
0
        static void Main(string[] args)
        {
            ChannelFactory <OrderCheckPortType> factory = null;
            OrderCheckPortType serviceProxy             = null;
            Binding            binding = null;

            binding      = new BasicHttpsBinding(BasicHttpsSecurityMode.Transport);
            factory      = new ChannelFactory <OrderCheckPortType>(binding, new EndpointAddress("https://demo-ordercheck.deltavista.de/soap"));
            serviceProxy = factory.CreateChannel();

            var input = new input(
                new MessageContext()
            {
                credentials = new Credentials()
                {
                    user     = "",
                    password = ""
                }
            },
                new OrderCheckRequest()
            {
                product = new Product()
                {
                    name            = "CreditCheckConsumer",
                    country         = "DEU",
                    proofOfInterest = "ABK"
                },
                searchedAddress = new SearchedAddress()
                {
                    legalForm = LegalForm.PERSON,
                    address   = new Address()
                    {
                        name        = "Falk",
                        firstName   = "Quintus",
                        gender      = Gender.MALE,
                        dateOfBirth = 19680414,
                        location    = new Location()
                        {
                            street  = "Rathausstrasse",
                            house   = "2",
                            city    = "Glücksburg",
                            zip     = "24960",
                            country = "DEU"
                        }
                    },
                    contact = new [] {
                        new Contact()
                        {
                            item  = "email",
                            value = "*****@*****.**"
                        }
                    }
                },
                clientData = new ClientData()
                {
                    reference = "Test_RCO_01",
                    order     = new Order()
                    {
                        orderValue = 78.55F
                    }
                }
            }
                );

            OrderCheck(serviceProxy, input).Wait();
        }
示例#16
0
        // Token: 0x0600008F RID: 143 RVA: 0x00005AE0 File Offset: 0x00004AE0
        private string processNode(XmlNode node, SubQuery query, Request request, Result result, User user)
        {
            if (request.StartedOn.AddMilliseconds(request.bot.TimeOut) < DateTime.Now)
            {
                request.bot.writeToLog(string.Concat(new string[]
                {
                    "WARNING! Request timeout. User: "******" raw input: \"",
                    request.rawInput,
                    "\" processing template: \"",
                    query.Template,
                    "\""
                }));
                request.hasTimedOut = true;
                return(string.Empty);
            }
            string text = node.Name.ToLower();

            if (text == "template")
            {
                StringBuilder stringBuilder = new StringBuilder();
                if (node.HasChildNodes)
                {
                    foreach (object obj in node.ChildNodes)
                    {
                        XmlNode node2 = (XmlNode)obj;
                        stringBuilder.Append(this.processNode(node2, query, request, result, user));
                    }
                }
                return(stringBuilder.ToString());
            }
            AIMLTagHandler aimltagHandler = null;

            aimltagHandler = this.getBespokeTags(user, query, request, result, node);
            if (object.Equals(null, aimltagHandler))
            {
                string key;
                switch (key = text)
                {
                case "bot":
                    aimltagHandler = new bot(this, user, query, request, result, node);
                    goto IL_53F;

                case "condition":
                    aimltagHandler = new condition(this, user, query, request, result, node);
                    goto IL_53F;

                case "date":
                    aimltagHandler = new date(this, user, query, request, result, node);
                    goto IL_53F;

                case "formal":
                    aimltagHandler = new formal(this, user, query, request, result, node);
                    goto IL_53F;

                case "gender":
                    aimltagHandler = new gender(this, user, query, request, result, node);
                    goto IL_53F;

                case "get":
                    aimltagHandler = new get(this, user, query, request, result, node);
                    goto IL_53F;

                case "gossip":
                    aimltagHandler = new gossip(this, user, query, request, result, node);
                    goto IL_53F;

                case "id":
                    aimltagHandler = new id(this, user, query, request, result, node);
                    goto IL_53F;

                case "input":
                    aimltagHandler = new input(this, user, query, request, result, node);
                    goto IL_53F;

                case "javascript":
                    aimltagHandler = new javascript(this, user, query, request, result, node);
                    goto IL_53F;

                case "learn":
                    aimltagHandler = new learn(this, user, query, request, result, node);
                    goto IL_53F;

                case "lowercase":
                    aimltagHandler = new lowercase(this, user, query, request, result, node);
                    goto IL_53F;

                case "person":
                    aimltagHandler = new person(this, user, query, request, result, node);
                    goto IL_53F;

                case "person2":
                    aimltagHandler = new person2(this, user, query, request, result, node);
                    goto IL_53F;

                case "random":
                    aimltagHandler = new random(this, user, query, request, result, node);
                    goto IL_53F;

                case "sentence":
                    aimltagHandler = new sentence(this, user, query, request, result, node);
                    goto IL_53F;

                case "set":
                    aimltagHandler = new set(this, user, query, request, result, node);
                    goto IL_53F;

                case "size":
                    aimltagHandler = new size(this, user, query, request, result, node);
                    goto IL_53F;

                case "sr":
                    aimltagHandler = new sr(this, user, query, request, result, node);
                    goto IL_53F;

                case "srai":
                    aimltagHandler = new srai(this, user, query, request, result, node);
                    goto IL_53F;

                case "star":
                    aimltagHandler = new star(this, user, query, request, result, node);
                    goto IL_53F;

                case "system":
                    aimltagHandler = new system(this, user, query, request, result, node);
                    goto IL_53F;

                case "that":
                    aimltagHandler = new that(this, user, query, request, result, node);
                    goto IL_53F;

                case "thatstar":
                    aimltagHandler = new thatstar(this, user, query, request, result, node);
                    goto IL_53F;

                case "think":
                    aimltagHandler = new think(this, user, query, request, result, node);
                    goto IL_53F;

                case "topicstar":
                    aimltagHandler = new topicstar(this, user, query, request, result, node);
                    goto IL_53F;

                case "uppercase":
                    aimltagHandler = new uppercase(this, user, query, request, result, node);
                    goto IL_53F;

                case "version":
                    aimltagHandler = new version(this, user, query, request, result, node);
                    goto IL_53F;
                }
                aimltagHandler = null;
            }
IL_53F:
            if (object.Equals(null, aimltagHandler))
            {
                return(node.InnerText);
            }
            if (aimltagHandler.isRecursive)
            {
                if (node.HasChildNodes)
                {
                    foreach (object obj2 in node.ChildNodes)
                    {
                        XmlNode xmlNode = (XmlNode)obj2;
                        if (xmlNode.NodeType != XmlNodeType.Text)
                        {
                            xmlNode.InnerXml = this.processNode(xmlNode, query, request, result, user);
                        }
                    }
                }
                return(aimltagHandler.Transform());
            }
            string  str   = aimltagHandler.Transform();
            XmlNode node3 = AIMLTagHandler.getNode("<node>" + str + "</node>");

            if (node3.HasChildNodes)
            {
                StringBuilder stringBuilder2 = new StringBuilder();
                foreach (object obj3 in node3.ChildNodes)
                {
                    XmlNode node4 = (XmlNode)obj3;
                    stringBuilder2.Append(this.processNode(node4, query, request, result, user));
                }
                return(stringBuilder2.ToString());
            }
            return(node3.InnerXml);
        }
示例#17
0
 .DefaultIfEmpty((nextLocation: EndOfText.Value, factory: () => this.Invalid(input, location)))
 .Aggregate((longest, cur) => cur.nextLocation.CompareTo(longest.nextLocation) > 0 ? cur : longest)
示例#18
0
 /// <summary>
 /// 双目运算
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Calculate_Click(object sender, EventArgs e)
 {
     if (radioButton_Add.Checked)//加法运算
     {
         ResultMartix.Text = null;
         input Leftinput  = new input(LeftMartix.Text);
         input Rightinput = new input(RightMartix.Text);
         if (!Leftinput.NULL)
         {
             Martix Result = Leftinput.Martix;
             Result = Leftinput.Martix + Rightinput.Martix;
             for (int i = 0; i < Result.Rows; i++)
             {
                 for (int j = 0; j < Result.Columns; j++)
                 {
                     ResultMartix.Text += Result[i, j].ToString();
                     if (j != Result.Columns - 1)
                     {
                         ResultMartix.Text += ",";
                     }
                 }
                 ResultMartix.Text += "\n";
             }
         }
     }
     if (radioButton_Sub.Checked)//减法运算
     {
         ResultMartix.Text = null;
         input Leftinput  = new input(LeftMartix.Text);
         input Rightinput = new input(RightMartix.Text);
         if (!Leftinput.NULL)
         {
             Martix Result = Leftinput.Martix;
             Result = Leftinput.Martix - Rightinput.Martix;
             for (int i = 0; i < Result.Rows; i++)
             {
                 for (int j = 0; j < Result.Columns; j++)
                 {
                     ResultMartix.Text += Result[i, j].ToString();
                     if (j != Result.Columns - 1)
                     {
                         ResultMartix.Text += ",";
                     }
                 }
                 ResultMartix.Text += "\n";
             }
         }
     }
     if (radioButton_Mul.Checked)//乘法运算
     {
         ResultMartix.Text = null;
         input Leftinput  = new input(LeftMartix.Text);
         input Rightinput = new input(RightMartix.Text);
         if (!Leftinput.NULL)
         {
             Martix Result = Leftinput.Martix;
             Result = Leftinput.Martix * Rightinput.Martix;
             for (int i = 0; i < Result.Rows; i++)
             {
                 for (int j = 0; j < Result.Columns; j++)
                 {
                     ResultMartix.Text += Result[i, j].ToString();
                     if (j != Result.Columns - 1)
                     {
                         ResultMartix.Text += ",";
                     }
                 }
                 ResultMartix.Text += "\n";
             }
         }
     }
     if (radioButton_Converse.Checked)//除法运算1,2,3; 2,1,2; 1,3,4
     {
         ResultMartix.Text = null;
         input Leftinput  = new input(LeftMartix.Text);
         input Rightinput = new input(RightMartix.Text);
         if (!Leftinput.NULL)
         {
             Martix Result = Leftinput.Martix;
             Result = Leftinput.Martix / Rightinput.Martix;
             for (int i = 0; i < Result.Rows; i++)
             {
                 for (int j = 0; j < Result.Columns; j++)
                 {
                     ResultMartix.Text += Result[i, j].ToString();
                     if (j != Result.Columns - 1)
                     {
                         ResultMartix.Text += ",";
                     }
                 }
                 ResultMartix.Text += "\n";
             }
         }
     }
 }
示例#19
0
 void Awake()
 {
     controls = new input();
     controls.Player.Jump.performed += _ => jump();
 }
 foreach (var(input, expected) in values)
示例#21
0
    // Update is called once per frame
    protected override void update()
    {
        for (int i = 0; i < PlayerArrows.Length; i++)
        {
            //get the input
            input input = new input(Vector2.zero, false, false);

            m_PlayerOneTimer += Time.deltaTime;
            m_PlayerTwoTimer += Time.deltaTime;

            if (i == PLAYER_ONE)
            {
                input.Move = InputManager.getMenuChangeSelection(GameData.Instance.m_PlayerOneInput);
                input.Accept = InputManager.getMenuAcceptDown(GameData.Instance.m_PlayerOneInput);
                input.Back = InputManager.getMenuBackDown(GameData.Instance.m_PlayerOneInput);

                if (input.Move != Vector2.zero)
                {
                    if (m_PlayerOneTimer < DELAY_TIME)
                    {
                        input.Move = Vector2.zero;
                    }
                    else
                    {
                        m_PlayerOneTimer = 0.0f;
                    }
                }
            }
            else if (i == PLAYER_TWO)
            {
                input.Move = InputManager.getMenuChangeSelection(GameData.Instance.m_PlayerTwoInput);
                input.Accept = InputManager.getMenuAcceptDown(GameData.Instance.m_PlayerTwoInput);
                input.Back = InputManager.getMenuBackDown(GameData.Instance.m_PlayerTwoInput);

                if (input.Move != Vector2.zero)
                {
                    if (m_PlayerTwoTimer < DELAY_TIME)
                    {
                        input.Move = Vector2.zero;
                    }
                    else
                    {
                        m_PlayerTwoTimer = 0.0f;
                    }
                }
            }

            if (!PlayerArrows[i].IsMounted)
            {
                //check if moving
                if (input.Move.y > 0.0f)
                {
                    PlayerArrows[i].moveUp();
                    return;
                }
                else if (input.Move.y < 0.0f)
                {
                    PlayerArrows[i].moveDown();
                    return;
                }

                //check if mounting
                if (input.Move.x != 0.0f)
                {
                    Vector2 middleToMount = new Vector2((PlayerArrows[i].SelectionMountPoint.position - PlayerArrows[i].transform.position).x, 0.0f);

                    if (Vector2.Dot(input.Move.normalized, middleToMount.normalized) > 0.0f)
                    {//player swiped towards thier side
                        if (!PlayerArrows[i].IsMounted)
                        {
                            PlayerArrows[i].select();
                            return;
                        }
                    }
                }

                back();
                if (!m_IsActiveMenu)
                {
                    return;
                }
            }
            else
            {
                //check if unmounting
                if (input.Move.x != 0.0f)
                {
                    Vector2 middleToMount = new Vector2((PlayerArrows[i].SelectionMountPoint.position - PlayerArrows[i].transform.position).x, 0.0f);

                    if (Vector2.Dot(input.Move.normalized, middleToMount.normalized) < 0.0f)
                    {//player swiped away from their side
                        if (PlayerArrows[i].IsMounted)
                        {
                            PlayerArrows[i].deselect();
                        }
                        return;
                    }
                }
            }
        }

        if (PlayerArrows[PLAYER_ONE].getSelection() != PlayerArrows[PLAYER_TWO].getSelection()
            && PlayerArrows[PLAYER_ONE].IsMounted && PlayerArrows[PLAYER_TWO].IsMounted
            && InputManager.getMenuAcceptDown())
        {
            //set the characters
            GameData.Instance.PlayerOneCharacter = PlayerArrows[PLAYER_ONE].getCharacterSetting();
            GameData.Instance.PlayerTwoCharacter = PlayerArrows[PLAYER_TWO].getCharacterSetting();

            //reset the menu
            for (int i = 0; i < PlayerArrows.Length; i++)
            {
                PlayerArrows[i].reset();
            }

            //go to next scene
            if (string.Compare(SceneToLoad, "") != 0)
            {
                Application.LoadLevel(SceneToLoad);
            }
        }
    }
示例#22
0
 => await ConvertAsync(input, output, default, cancellationToken);
示例#23
0
     new Func <MultiRunInput, CancellationToken, Task <CheckResult> >(async(input, token) =>
 {
     var botData = input.BotData;
示例#24
0
 private ParserName(string input, string leftQuote      = null, string rightQuote = null) => this.ParseString(input, leftQuote, rightQuote);
示例#25
0
 var(input, expected) = texts;
 public void writeData(input input)
 {
     //bunch of code
 }
示例#27
0
 var(input, instr, output) = sample;
示例#28
0
 public reorderBuffer(array <Properties> rune = default, array <byte> @byte = default, byte nbyte = default, streamSafe ss = default, long nrune = default, formInfo f = default, input src = default, long nsrc = default, input tmpBytes = default, slice <byte> @out = default, Func <ptr <reorderBuffer>, bool> flushF = default)
 {
     this.rune     = rune;
     this.@byte    = @byte;
     this.nbyte    = nbyte;
     this.ss       = ss;
     this.nrune    = nrune;
     this.f        = f;
     this.src      = src;
     this.nsrc     = nsrc;
     this.tmpBytes = tmpBytes;
     this.@out     = @out;
     this.flushF   = flushF;
 }
示例#29
0
        private void btnEmitterCard_Click(object sender, EventArgs e)
        {
            try
            {
                SplashScreenManager.ShowForm(null, typeof(PleaseWaitForm), false, false, false);
                customer c = customer.SingleOrDefault(cbCustomer.EditValue);

                if (Convert.ToDecimal(tfValueCard.EditValue) <= 0)
                {
                    DialogResult rs = XtraMessageBox.Show(String.Format("Confirma a {0} do cartão em R$0,00?",
                        (c.card_emitted ? "renovação" : "emissão")), "Confirmação",
                        MessageBoxButtons.OKCancel);
                    if (rs == DialogResult.Cancel)
                        return;
                }

                DialogResult cc = XtraMessageBox.Show(String.Format("Confirma a {0} do cartão para o cliente {1}?",
                    (c.card_emitted ? "renovação" : "emissão"), c.name), "Confirmação", MessageBoxButtons.OKCancel);
                if (cc == DialogResult.Cancel)
                    return;

                using(var scope = customer.repo.GetTransaction())
                {
                    c.name = c.name.TrimStart().TrimEnd();
                    if (c.card_emitted == false)
                    {
                        c.emission_card_at = customer.Now();
                        c.emission_card_by = Singleton.getCurrentUser().id;
                    }

                    c.validate_card = Convert.ToDateTime(tfValidateAt.EditValue);
                    c.value_card = Convert.ToDecimal(tfValueCard.EditValue);
                    c.CreateCardCode();
                    c.card_emitted = true;
                    if (c.value_card > 0)
                    {
                        input i = new input()
                        {
                            description = String.Format("Recebimento referente á {0} do cartão {1} de cliente {2}-{3}",
                                (c.card_emitted ? "renovação" : "emissão"), c.barcode, c.id, c.name),
                            observations = String.Format("Valor referente á {0} do cartão {1} do cliente {2}\n----------\n{3}\n(Automático)",
                                (c.card_emitted ? "renovação" : "emissão"), c.barcode, c.id, c.observation),
                            credentialed_id = 0,
                            customer_id = c.id,
                            date = input.Now(),
                            value = c.value_card,
                            registred_at = input.Now(),
                            registred_by = Singleton.getCurrentUser().id
                        };
                        i.Save();
                    }
                    c.Save();
                    scope.Complete();
                    bdgInfoCard.Clear();
                    bdgInfoCard.DataSource = c;

                    btnExportCodeBar.Enabled = true;
                    btnEmitterCard.Enabled = false;
                    SearchCustomer(sender, e);
                }
            }
            catch (Exception ex)
            {
                customer.repo.AbortTransaction();
                XtraMessageBox.Show(String.Format("Ocorreu um erro na tentativa da emissão/renovação do cartão\n\n{0}\n{1}",
                    ex.Message, ex.InnerException));
            }
            finally
            {
                SplashScreenManager.CloseForm(false);
            }
        }
示例#30
0
 bool moveAway(ref input inp)
 {
     //TODO if under heavy fire from an advancing and relatively close enemy
     return(false);
 }
示例#31
0
 acc += int.Parse(input[pc][4..]);
 void Start()
 {
     GameObject p = GameObject.Find ("InputField");
             inputObj = p.GetComponent<input> ();
     //sprite =  this.gameObject.GetComponent<SpriteRenderer>();
 }
示例#33
0
文件: Engine.cs 项目: cmxl/FFmpeg.NET
 => await ConvertAsync(input, output, default, cancellationToken).ConfigureAwait(false);
示例#34
0
     new Func <ProxyCheckInput, CancellationToken, Task <Proxy> >(async(input, token) =>
 {
     var options = new HttpOptions
示例#35
0
 input = $"{input[..(startPos - 1)]}{Process(input[startPos..(currentPos - 1)])}{input[(currentPos)..]}";
示例#36
0
文件: Engine.cs 项目: cmxl/FFmpeg.NET
 => await GetThumbnailAsync(input, output, default, cancellationToken).ConfigureAwait(false);
示例#37
0
 await CryptoHelper.GetEncryptionStreamAsync(input, inputSize, Cryptography.NS2F.Key, Cryptography.NS2F.IV, zlibCompress).ConfigureAwait(false);