コード例 #1
0
        public MovementDisplay(List <Device> Esp32Devices, SnifferServer ServerInput)
        {
            InitializeComponent();

            this.Esp32Devices  = Esp32Devices;
            this.Server        = ServerInput;
            Esp32Render        = new ChartValues <DeviceLabel>();
            DevicesRenderer    = new ChartValues <DeviceLabel>();
            NumDevicesInterval = new ChartValues <int>();
            NumDevicesInterval.Add(0);
            DrawEsp32(Esp32Devices);
            DataContext = this;
        }
コード例 #2
0
        public Localization(List <Device> Esp32Devices, SnifferServer ServerInput)
        {
            InitializeComponent();
            this.Esp32Devices       = Esp32Devices;
            this.Server             = ServerInput;
            Server.ProgressChanged += Esp32CoordinateObtained;

            Esp32Render        = new ChartValues <DeviceLabel>();
            DevicesRenderer    = new ChartValues <DeviceLabel>();
            NumDevicesInterval = new ChartValues <int>();
            NumDevicesInterval.Add(0);
            DrawEsp32(Esp32Devices);
            DataContext = this;
        }
コード例 #3
0
        public LongTermStatistics(SnifferServer ServerInput)
        {
            InitializeComponent();


            Server = ServerInput;

            TimeIntervalGlobal = new List <DateTime>();
            GlobalInterval     = new List <Tuple <string, DateTime> >();
            Mac              = new List <string>();
            Time             = new List <string>();
            SeriesCollection = new SeriesCollection();



            DataContext = this;
        }
コード例 #4
0
        public EspConnection(List <Device> esp32Devices)
        {
            InitializeComponent();
            Esp32Devices = new List <Device>();
            Esp32Devices = esp32Devices;

            //Create new thread which supports cancellation and report progress, all controlled by events
            Server = new SnifferServer(Esp32Devices)
            {
                WorkerReportsProgress = true,

                WorkerSupportsCancellation = true
            };
            Server.NumEsp32 = esp32Devices.Count;
            //Register functions to events of background worker
            Server.DoWork          += Server_DoWork;
            Server.ProgressChanged += Esp32ConfigurationCompleted;
            //Start server operations
            Server.RunWorkerAsync();
            KeyUp += CloseDialogBox;
        }