using System; using Gtk; using Glade; public class App { Dialog wConsultarAfiliado; static public void Main (string[] args) { new App (); } public App () { Application.Init(); Glade.XML gxml = new Glade.XML (null, "main.glade", "main", null); gxml.Autoconnect (this); Widget w = gxml.GetWidget ("main"); w.SetSizeRequest (450, 250); Application.Run(); } public void OnSalirActivate (object o, EventArgs args) { Application.Quit (); } public void OnConsultarAfiliado (object o, EventArgs args) { Glade.XML gxml = new Glade.XML (null, "consultar_afiliado.glade", "consultarAfiliado", null); gxml.Autoconnect (this); wConsultarAfiliado = (Dialog)gxml.GetWidget ("consultarAfiliado"); wConsultarAfiliado.SetSizeRequest (450, 250); wConsultarAfiliado.Run (); } public void OnConsultarAfiliadoClose (object o, EventArgs args) { wConsultarAfiliado.Destroy (); } public void OnVerAfiliado (object o, EventArgs args) { } public void OnBuscarAfiliado (object o, EventArgs args) { } }