- switching german to english - some bug fixes in device sessions and improvements - adding xml documentation
29 lines
729 B
C#
29 lines
729 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TelegramBotBase.Base;
|
|
|
|
namespace TelegramBotBase.Form
|
|
{
|
|
/// <summary>
|
|
/// A simple prompt dialog with one ok Button
|
|
/// </summary>
|
|
public class AlertDialog : PromptDialog
|
|
{
|
|
public String ButtonText { get; set; }
|
|
|
|
public AlertDialog(String Message, String ButtonText, FormBase FormToOpen = null) : base(Message)
|
|
{
|
|
this.Buttons.Add(new ButtonBase(ButtonText, "ok"));
|
|
this.ButtonText = ButtonText;
|
|
|
|
if (FormToOpen != null)
|
|
this.ButtonForms.Add("ok", FormToOpen);
|
|
}
|
|
|
|
}
|
|
}
|