public void ShowConfirmation(string message, string title = "Error", string okButtonText = "Ok", Action okButtonAction = null, string cancelButtonText = "Cancel", Action cancelButtonAction = null, InteractiveAlertStyle alertStyle = Warning) { var alertConfig = new InteractiveAlertConfig { OkButton = new InteractiveActionButton { Title = okButtonText, Action = okButtonAction }, CancelButton = new InteractiveActionButton { Title = cancelButtonText, Action = cancelButtonAction }, Title = title, Message = message, Style = alertStyle, IsCancellable = false }; _interactiveAlerts.ShowAlert(alertConfig); }
private void CreateAlertConfigItem(string title, string alertMessage, InteractiveAlertStyle style) { var alertConfig = new InteractiveAlertConfig { OkButton = new InteractiveActionButton(), CancelButton = new InteractiveActionButton(), Message = alertMessage, Title = title, Style = style, IsCancellable = true }; _alerts.ShowAlert(alertConfig); }