예제 #1
0
 public ProjectesViewModel(author a, bool enable, triaculturaDBEntities ctx)
 {
     context = ctx;
     titol   = "Projectes";
     Author  = context.authors.Where(x => x.dni == a.dni).SingleOrDefault();
     fillProjectes(0);
 }
예제 #2
0
 public EspaiViewModel(project p, triaculturaDBEntities context)
 {
     this.context    = context;
     SelectedProject = p;
     if (context != null)
     {
         fillPlaces(0);
         fillProjectPlaces(0);
     }
 }
예제 #3
0
 public ProjectesViewModel(place p, triaculturaDBEntities ctx)
 {
     context = ctx;
     titol   = "Projectes";
     fillProjectes(p);
 }
예제 #4
0
 public ProjectesViewModel()
 {
     context = new triaculturaDBEntities();
     fillProjectes(0);
 }