Skip to content

Instantly share code, notes, and snippets.

View alexandersiemert's full-sized avatar
🤟
Working on DataViewer for SIEMERT Dataloggers

Alexander Siemert alexandersiemert

🤟
Working on DataViewer for SIEMERT Dataloggers
View GitHub Profile
@alexandersiemert
alexandersiemert / USBDeviceDetection.cs
Created December 15, 2023 11:14
USB Device change management
using System;
using System.Management;
using System.Windows;
namespace USBDeviceDetection
{
public partial class MainWindow : Window
{
private ManagementEventWatcher watcher;
using System;
using ScottPlot;
using ScottPlot.Plottable;
using System.Windows.Forms;
namespace WinFormsApp
{
public partial class Form1 : Form
{
readonly HSpan MySpan;
@alexandersiemert
alexandersiemert / ScottPlot_HLine_VLine_Dragged_EventHandler.cs
Created April 17, 2023 13:27
ScottPlot WPF HLine/VLine Dragged EventHandler
// Create Line
crosshairCustom = WpfPlot1.Plot.AddHorizontalLine(20,80)
// Register EventHandler for Dragged-event
crosshairCustom.Dragged += crosshairCustom_Dragged;
//-----------------EVENTHANDLER-------------------------------------------
// EventHandler for Dragged-event