C#/VB.NET/Mono

1) Download The Library

2) Include The Library

Using a .NET Framework (C#, VB.NET, J#, etc) Project that was created, add the “Library” folder to your solution. Next, you’ll want to open up Config.cs and modify it so it works with your Little Software Stats:

3) Integrate with your software

Now you’ll want to integerate Little Software Stats by calling it using your software code. This example is from the Little Software Stats C# library which shows how to use the library

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace LittleSoftwareStatsNET
{
public partial class Form1 : Form
{
LittleSoftwareStats.Watcher _watcher = new LittleSoftwareStats.Watcher();
public Form1()
{
InitializeComponent();

// Must be set to true in order for data to be sent
LittleSoftwareStats.Config.Enabled = true;
// Tells library to start collecting data
this.m_watcher.Start("YOURAPPID", "YOURAPPVERSION");
}
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
// Make sure libary is still started
if (this._watcher.Started)
// If it is then stop it and send data before application exits
this._watcher.Stop();
}
}

There is also an example Windows Forms C# project already made which is included with the library. You can use that to test and make sure that your Little Software Stats is receiving data properly.

LittleSoftwareStats.Watcher Functions

There are other functions that can be utilized to collect data using LittleSoftwareStats.Watcher which are described below: