private void ButtonStart_Click(object sender, RoutedEventArgs e)
 {
     if (comBoxDevices.SelectedIndex == -1)
     {
         return;
     }
     Sniffer.Device = (PcapDevice)Sniffer.DevicesList[(ComboBoxItem)comBoxDevices.SelectedItem];
     Sniffer.StartCapturing();
 }
 private void ButtonStop_Click(object sender, RoutedEventArgs e)
 {
     Sniffer.StopCapturing();
 }