Exemple #1
0
 public void InitializeServerList(List <TeraDpsApi.DpsServer> servers)
 {
     foreach (var server in servers)
     {
         DpsServer dpsServerUi = new DpsServer(server, this);
         DpsServers.Children.Add(dpsServerUi);
     }
 }
Exemple #2
0
        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);
        }