Skip to content

Instantly share code, notes, and snippets.

@cabrel
cabrel / drag-drop-wpf.cs
Last active May 23, 2023 06:14
Drag & Drop in C# w/ WPF
// WPF Canvas Object
// Canvas LayoutCanvas;
//
// Events Required
//
// Canvas_PreviewMouseLeftButtonDown
// Canvas_PreviewMouseMove
// Canvas_PreviewMouseLeftButtonUp
// Parent_PreviewKeyDown
//
@cabrel
cabrel / netica-likelihoods.cs
Last active December 14, 2015 03:59
Programatically Entering Netica Likelihoods
// We will assume you have a netica network
// assigned to the private variable: NeticaNetwork
// and that you will properly assign the two variables
// listed below in the correct locations.
//
// place in relative locations within your code
//
Application App = new Application();
BNet NeticaNetwork = App.ReadBNet(pathToNeta);