SIL.Utils.UsageEmailDialog.IncrementLaunchCount C# (CSharp) Method

IncrementLaunchCount() public static method

call this each time the application is launched if you have launch count-based reporting
public static IncrementLaunchCount ( RegistryKey applicationKey ) : void
applicationKey Microsoft.Win32.RegistryKey The application registry key.
return void
		public static void IncrementLaunchCount(RegistryKey applicationKey)
		{
			int launchCount = int.Parse((string)applicationKey.GetValue("launches", "0")) + 1;
			applicationKey.SetValue("launches", launchCount.ToString());
		}