Exemplo n.º 1
0
        private void button_SYS_START_Click(object sender, RoutedEventArgs e)
        {
            Log.Write("Инициализируем сервер");
            UDP_server z = new UDP_server(cfg.my_IP, cfg.my_PORT, cfg, b072);

            udp0 = z;
            UDP_sender x = new UDP_sender(cfg.dst_IP, cfg.dst_PORT);

            udp0_sender = x;

            UDP_DATA_SERVER y = new UDP_DATA_SERVER(this, cfg.DATA0_IP, cfg.DATA0_PORT);//

            sDATA0 = y;
            UDP_DATA_SERVER q = new UDP_DATA_SERVER(this, cfg.DATA1_IP, cfg.DATA1_PORT);

            sDATA1 = q;
        }
        public Приёмник(MainWindow a, MenuItem mn, UDP_DATA_SERVER z0, UDP_DATA_SERVER z1, UDP_sender x)
        {
            InitializeComponent();
            init   = true;
            main   = a;
            srv0   = z0;
            srv1   = z1;
            send   = x;
            menu_z = mn;
            if (a != null)
            {
            }
            FFT_SIZE             = main.FFT_SIZE;
            textBox_sizeFFT.Text = FFT_SIZE.ToString();

            Timer1.Tick    += new EventHandler(Timer1_Tick);
            Timer1.Interval = new TimeSpan(0, 0, 0, 0, 100);
            Timer1.Start();//запускаю таймер

            Timer2.Tick    += new EventHandler(Timer2_Tick);
            Timer2.Interval = new TimeSpan(0, 0, 0, 0, 100);
            Timer2.Start();//запускаю таймер

            Timer3.Tick    += new EventHandler(Timer3_Tick);
            Timer3.Interval = new TimeSpan(0, 0, 0, 0, 100);
            Timer3.Start();//запускаю таймер

            Timer4.Tick    += new EventHandler(Timer4_Tick);
            Timer4.Interval = new TimeSpan(0, 0, 0, 0, 100);
            Timer4.Start();//запускаю таймер

            comboBox_winFFT.ItemsSource  = Enum.GetNames(typeof(DSPLib.DSP.Window.Type));
            comboBox_winFFT.SelectedItem = 1;
            //selectedWindowName = comboBox_winFFT.SelectedValue.ToString();
            //
        }