Esempio n. 1
0
        protected AlertConfigItem CreateEditableAlertConfigItem(string title, string alertMessage, bool singleLine, InteractiveAlertStyle style)
        {
            var config = new AlertConfigItem
            {
                Title = title
            };

            config.Command = () =>
            {
                var alertConfig = new EditableInteractiveAlertConfig
                {
                    OkButton     = new InteractiveActionButton(),
                    CancelButton = new InteractiveActionButton(),
                    Message      = alertMessage,
                    Title        = "Good job!",
                    Style        = style,
                    SingleLine   = singleLine
                };

                this.interactiveAlerts.ShowAlert(alertConfig);
            };

            return(config);
        }