public ResearchClientServerSelectionMenu(ResearchClientBoundUserInterface owner) { RobustXamlLoader.Load(this); IoCManager.InjectDependencies(this); Owner = owner; Servers.OnItemSelected += OnItemSelected; Servers.OnItemDeselected += OnItemDeselected; }
public ResearchClientServerSelectionMenu(ResearchClientBoundUserInterface owner) { MinSize = SetSize = (300, 300); IoCManager.InjectDependencies(this); Owner = owner; Title = Loc.GetString("research-client-server-selection-menu-title"); _servers = new ItemList() { SelectMode = ItemList.ItemListSelectMode.Single }; _servers.OnItemSelected += OnItemSelected; _servers.OnItemDeselected += OnItemDeselected; Contents.AddChild(_servers); }