This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Management; | |
using System.Windows; | |
namespace USBDeviceDetection | |
{ | |
public partial class MainWindow : Window | |
{ | |
private ManagementEventWatcher watcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ScottPlot; | |
using ScottPlot.Plottable; | |
using System.Windows.Forms; | |
namespace WinFormsApp | |
{ | |
public partial class Form1 : Form | |
{ | |
readonly HSpan MySpan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create Line | |
crosshairCustom = WpfPlot1.Plot.AddHorizontalLine(20,80) | |
// Register EventHandler for Dragged-event | |
crosshairCustom.Dragged += crosshairCustom_Dragged; | |
//-----------------EVENTHANDLER------------------------------------------- | |
// EventHandler for Dragged-event |