+
+ ListStore m = new ListStore (typeof(int), typeof(string), typeof(float), typeof(float));
+ lista.Model = m;
+ lista.HeadersVisible = true;
+ lista.AppendColumn ("Código", new CellRendererText (), "text", 0);
+ lista.AppendColumn ("Descripción", new CellRendererText (), "text", 1);
+ lista.AppendColumn ("Categoría", new CellRendererText (), "text", 2);
+ lista.AppendColumn ("Permanencia Mínima", new CellRendererText (), "text", 3);
+
+ CargarPlanes ();
+ }
+
+ private void CargarPlanes ()
+ {
+ ListStore store = (ListStore)lista.Model;
+ store.Clear ();
+
+ planc = new PlanesController ();
+ ArrayList lst = planc.ObtenerPlanesVigentes ();
+ foreach (Plan p in lst) {
+ TreeIter iter = store.Append ();
+ store.SetValue (iter, 0, p.Codigo);
+ store.SetValue (iter, 1, p.Descripcion);
+ store.SetValue (iter, 2, p.Categoria);
+ store.SetValue (iter, 3, p.PermanenciaMinima);
+ }
+
+ planc.Dispose ();