Esempio n. 1
0
 private void tmrRefreshList_Tick(object sender, EventArgs e)
 {
     if (VisualizationHelper.CheckData(ref settings))
     {
         gvGrid.DataSource = VisualizationHelper.GridSource;
         VisualizationHelper.UpdateMarkers(mapOverlays);
         mapControl.Refresh();
     }
 }
Esempio n. 2
0
 private void frmMain_Load(object sender, EventArgs e)
 {
     lblVersion.Text        = $"Version: {Application.ProductVersion}";
     tmrRefreshList.Enabled = true;
     mapControl.MapProvider = GMapProviders.YandexMap;
     mapControl.ScaleMode   = ScaleModes.Fractional;
     mapControl.MinZoom     = 0;
     mapControl.MaxZoom     = 24;
     mapControl.Zoom        = 2;
     mapControl.Overlays.Add(mapOverlays);
     PcapHelper.CurrentAppForm = this;
     PcapHelper.FillDeviceDropDownList(cbDevice);
     gvRecords.DataSource = PcapHelper.PacketDataSource;
     if (VisualizationHelper.CheckData(ref settings))
     {
         gvGrid.Columns.Clear();
         gvGrid.DataSource = VisualizationHelper.GridSource;
         VisualizationHelper.UpdateMarkers(mapOverlays);
     }
     //for now until al bugs are fixed, I'll hide it, and settings menu button too
     tcMain.TabPages.Remove(tabPacketSniffer);
     mnuSettings.Visible = false;
 }