我正在使用以下代码调用我的自定义对话框窗口:
GUI.SLDialog sd = new GUI.SLDialog();
if (sd.ShowDialog() == false)
{
return;
}
但是 sd.ShowDialog() 总是什么都不返回(我认为),因为函数中断了,但是return;
没有到达航点。
当我添加到按钮时,对话框会自动关闭:
this.DialogResult = false;//or true
有人知道我在做什么错吗?在此先感谢您的帮助。
甲烷
@edit 这是我的 SLDialog:xaml:http : //wklej.org/hash/9fb67fb0c7c/cs: http ://wklej.org/hash/16e3ccc6c0d/