private void ExecutePromptResultMultiInput(PromptConfigMultiInput config, LinearLayout container)
        {
            List <PromptInput> inputsResult = new List <PromptInput>();

            for (int i = 0; i < container.ChildCount; i++)
            {
                EditText editText = (EditText)container.GetChildAt(i);

                PromptInput configInput = config.Inputs[i];
                configInput.Text = editText.Text;

                inputsResult.Add(configInput);
            }

            config.OnAction(new PromptResultMultiInput(true, inputsResult));
        }
Exemplo n.º 2
0
        protected virtual void SetAction(bool ok)
        {
            LinearLayout container = this.Dialog.FindViewById <LinearLayout>(Int32.MaxValue - 1000);

            List <PromptInput> inputsResult = new List <PromptInput>();

            for (int i = 0; i < container.ChildCount; i++)
            {
                EditText editText = (EditText)container.GetChildAt(i);

                PromptInput configInput = this.Config.Inputs[i];
                configInput.Text = editText.Text;

                inputsResult.Add(configInput);
            }

            this.Config?.OnAction(new PromptResultMultiInput(ok, inputsResult));
            this.Dismiss();
        }