3 using System.Collections;
7 using Controlador.Afiliacion;
8 using Dominio.Afiliados;
9 using Dominio.Autorizaciones;
13 public class VMantenerPrestaciones
17 [Widget] TextView detalles;
19 [Widget] ProgressBar progreso;
21 public VMantenerPrestaciones ()
23 xml = new Glade.XML (null, "mantener_prestaciones.glade", "mantener_prestaciones", null);
24 xml.Autoconnect (this);
27 public void OnActualizar (object o, EventArgs args)
29 TextBuffer buffer = detalles.Buffer;
31 for (int i=1; i < 10000; i++) {
32 progreso.Fraction = i/10000.0f;
33 buffer.InsertAtCursor (String.Format ("Agregando {0} de {1}\n", i, 10000));
34 detalles.ScrollToIter (buffer.EndIter, 0.0f, false, 0.0f, 0.0f);
35 while (Gtk.Global.EventsPending)
36 Main.IterationDo (false);
42 Dialog w = (Dialog)xml.GetWidget ("mantener_prestaciones");