//public Menu SideMenu { get; set; } public Project(int?ProjectID) { PageMenu = new ButtonMenu("ID:todo", "ParentControllerAndAction"); if (ProjectID == null) { this.ProjectID = -1; } else { this.ProjectID = (int)ProjectID; Page = new Page(); } //PanelList = new List<Panel>(); //SideMenu = new Menu(); }
} // Zatim nevim, jestli bude toto k necemu vubec uzitecne. public Page() { SideMenu = new Menu(); Panels = new Panels(); PageMenu = new ButtonMenu("ID: tra", "ParentControllerAndAction"); }