public static IncrementLaunchCount ( |
||
applicationKey | 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());
}