0
我想如果某布尔值是set.Inspite布尔值是真我的应用程序退出,这样一个对话框显示给用户覆盖Gtk.Window关闭事件不显示对话框。我尝试打印出布尔值。它是正确的。重写GTK窗口关闭事件显示一条消息
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Console.WriteLine (bval);
if (bval == true) {
mynot notification=new mynot(this);
notification.Show();
}
else
{
Gtk.Application.Quit();
a.RetVal = true;
}
}
谢谢..我没有今天访问Mac系统中,将看一看,并取回的明天。 – techno
由于该方法是无效返回类型,因此我不能返回false。但是,通过将a.RetVal = true在若情况下,worked.Thanks – techno
这Xamarin Studio.But内运行时,应用程序外运行时的工作只是当它到达如果condition.What可以去错了关闭?请指点 – techno