public void InitializeServerList(List <TeraDpsApi.DpsServer> servers) { foreach (var server in servers) { DpsServer dpsServerUi = new DpsServer(server, this); DpsServers.Children.Add(dpsServerUi); } }
private void AddServerButton_OnClick(object sender, RoutedEventArgs e) { var server = new TeraDpsApi.DpsServer(new DpsServerData(null, null, null, null, null, true), false); BasicTeraData.Instance.WindowData.DpsServers.Add(server.Data); DataExporter.DpsServers.Add(server); DpsServer dpsServerUi = new DpsServer(server, this); DpsServers.Children.Add(dpsServerUi); }