我正在使用Modern UI并尝试制作一个对话框,询问问题并等待回答。我可以使用messagebox实现这一点,但想尝试使用Modern UI。我不确定如何获取按钮的点击值。
if (testapp.linkvalue != "NULL")
{
var v = new ModernDialog
{
Title = "my test",
Content = "pewpew lazers rule. If you agree click ok"
};
v.Buttons = new Button[] { v.OkButton, v.CancelButton };
var r = v.ShowDialog();
if (????????????????)
{
MessageBox.Show("ok was clicked");
}
else
{
MessageBox.Show("cancel was clicked");
}
}