Simple .NET library to display graphs

Hi everyone,

An example of graph
An example of graph

A very short post to share this first draft of a simple .net library to handle graphs. It allows to add nodes, pins, connections, and events on the graph. Some properties and events are directly accessible through the properties/events pane in visual studio.

It’s probably missing a lot in terms of functionnalities, however the below features are already there:

  • Nodes, Pins and Connections manipulation (Add, modify, remove)
  • Selected state, selectors (click, rectangle…)
  • Events (click, double click, picking on the connections)
  • So far, the nodes are only boxes, and only contains a main and sub┬átitles. However, there might be other shapes later, with a way to customize the nodes content.

I’m using this component in a scripting tool I’m planning to add to the GameTools release.

If you find this component handy, or if you have feedbacks about it, don’t hesitate to let me know.



Read More

Easy to use software licensing system

As promised, the beta version for SimpleLicensingSystem, aka SLS, is now available in beta. This first version is designed for .NET application, and will let you setup the licensing of your app in no time:

  • – Add SLSLib.dll as a reference of your project
  • – Create a instance of a TWLicense, with your product name and a private ID
  • – Test the presence of a license with methods such as IsTrial or IsExpired
  • – Allow your users to enter a license key to enable their license

A tool (SLSKeyGen) is included to generate your license keys.

A sample (in C#) is also included in the package. As you can see, it’s a less-than-10-lines piece of code.

The sample source
The sample source

More functions will come soon, such as a C++ API, a more optimized license format, and the possibility to use the license as a container for variables & files. Please contact me if you need more info about the project.

About the security:

The main goal of this project is to provide a very straightforward API. The license and the keys are heavily encoded, and shouldn’t be easy to crack, however the API itself is based on .net, and even it was obfuscated, it could still be reverse-engineered. On the other hand, it’ll do the job to protect your app from what a standard user can do. If someone skilled enough decides to crack your app, he will probably succeed, even if you spent big bucks in the security. That doesn’t mean I won’t improve the tool: the next version will be based on native code, with a lot more of security locks/checks. However, the main objective of this project will remain the ease of use.

Download the package (you’ll need the .net 3.5 framework)

Read More