Ejemplo n.º 1
0
 public DpsServer(DamageMeter.TeraDpsApi.DpsServer server, NotifyIcon parent)
 {
     InitializeComponent();
     _server = server;
     _icon   = parent;
     SetData(_server.Data);
 }
Ejemplo n.º 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);
        }