/* Nada seleccionado */
return;
}
+
+ /* Confirmo la operacion */
+ MessageDialog md = new MessageDialog (
+ null,
+ DialogFlags.DestroyWithParent,
+ MessageType.Question,
+ ButtonsType.YesNo, "Esta seguro de quere eliminar el solicitante?"
+ );
+
+ ResponseType result = (ResponseType)md.Run ();
+
+ if (result == ResponseType.No) {
+ md.Destroy ();
+ return;
+ }
+ md.Destroy ();
+
ETipoDocumento tipoDoc;
int nroDoc;
tipoDoc = (ETipoDocumento)Enum.Parse (typeof (ETipoDocumento), (string)store.GetValue (iter, 0), true);
if (familiares > 0) {
for (int i=0; i<familiares; i++) {
- AgregarFamiliar (i+1, familiares);
+ AgregarFamiliar (i+1, familiares, tipoDoc, nroDoc);
}
}
+ c.Visitado (tipoDoc, nroDoc);
+
c.Dispose ();
store.Remove (ref iter);
}
- private void AgregarFamiliar (int n, int total)
+ private void AgregarFamiliar (int n, int total, ETipoDocumento tipo, int nro)
{
- Glade.XML xml1 = new Glade.XML (null, "registrar_visitas.glade", "agregar_familiar", null);
- xml1.Autoconnect (this);
-
- Dialog w = (Dialog)xml1.GetWidget ("agregar_familiar");
- w.Title = String.Format ("Agregar Familiar {0} de {1}", n, total);
+ VAgregarFamiliar w = new VAgregarFamiliar (n, total, tipo, nro);
w.Run ();
- w.Destroy ();
}
public void OnSeleccionarFechaClicked (object o, EventArgs args)