我如何重绘或重绘窗口或小部件? 例如,在Java Swing中,我可以使用repaint()和validate()。
using System;
using Gtk;
namespace Road111
{
public partial class TransportDialog1 : Gtk.Dialog
{
public TransportDialog1()
{
Build();
}
protected void Refresh_Button(object sender, EventArgs e)
{
If(....)
//refresh_command
protected void Ok_Button(object sender, EventArgs e)
{
thi.Hide();
}
protected void Cancel_Button(object sender, EventArgs e)
{
this.Destroy();
}
}
}