예제 #1
0
 public Manager(Manager parent)
     : this()
 {
     this.game = parent.Game;
     this.parent = parent;
     parent.AddItem(this);
 }
예제 #2
0
 //TODO: change user type from string User class
 public ChatController(IManageable<MessageStorage> repo)
 {
     messages = repo;
     viewModel.CurrentUser = (User != null ? User.Identity.Name : "");
     viewModel.MessageRepo = messages;
     viewModel.ReloadCurrentMessage();
 }
예제 #3
0
 public void AddItem(IManageable item)
 {
     Array.Resize<IManageable>(ref subManagers, subManagers.Length + 1);
     subManagers[subManagers.Length - 1] = item;
 }
예제 #4
0
 public ImageController(IManageable<Picture> repo)
 {
     imageRepository = repo;
 }
예제 #5
0
 public HomeController(IManageable<News> repository)
 {
     repo = repository;
 }