+
+ ListStore m = new ListStore (typeof(string), typeof(float), typeof(float));
+ lista.Model = m;
+ lista.HeadersVisible = true;
+ lista.AppendColumn ("Descripción", new CellRendererText (), "text", 0);
+ lista.AppendColumn ("Categoría", new CellRendererText (), "text", 1);
+ lista.AppendColumn ("Permanencia Mínima", new CellRendererText (), "text", 2);
+
+ 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.Descripcion);
+ store.SetValue (iter, 1, p.Categoria);
+ store.SetValue (iter, 2, p.PermanenciaMinima);
+ }
+
+ planc.Dispose ();