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