public Manager(Manager parent) : this() { this.game = parent.Game; this.parent = parent; parent.AddItem(this); }
//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(); }
public void AddItem(IManageable item) { Array.Resize<IManageable>(ref subManagers, subManagers.Length + 1); subManagers[subManagers.Length - 1] = item; }
public ImageController(IManageable<Picture> repo) { imageRepository = repo; }
public HomeController(IManageable<News> repository) { repo = repository; }