private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Capture c = new Capture();

            ServerInfoItem[] servers    = ServerInfoItem.servers();
            InitWindow       initWindow = new InitWindow(c.devices, ServerInfoItem.getServersName(servers));

            if (initWindow.ShowDialog() != true)
            {
                Close(); return;
            }
            c.serverIps = new string[1] {
                servers[initWindow.selectedIndexServer].serverIp
            };
            tera = new Tera(c);
            tera.onStartSnifferSync  += tera_onStartSnifferSync;
            tera.onNewConnectionSync += tera_onNewConnectionSync;
            tera.onEndConnectionSync += tera_onEndConnectionSync;
            tera.onParsePacketSync   += tera_onParsePacketSync;

            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMilliseconds(101);
            timer.Tick    += timer_Tick;
            timer.Start();

            tera.start(initWindow.selectedIndexDevice);
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            capture = new Capture();
            //Запускаем окно настроек соединения
            InitWindow initWindow = new InitWindow(capture.devices, ServerInfoItem.getServersName(servers));

            if (initWindow.ShowDialog() != true)
            {
                Close(); return;
            }
            capture.serverIps = new string[1] {
                servers[initWindow.selectedIndexServer].serverIp
            };
            capture.onStartedSniffer += capture_onStartedSniffer;
            capture.onNewConnection  += capture_onNewConnection;
            capture.onParsePacket    += capture_onParsePacket;
            capture.start(initWindow.selectedIndexDevice);
            test();
        }