internal override bool TryReadValue(out long value) { RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, path); String valueString = regedit.Read(Key); // Check if the registry contains good data. if (valueString != null && long.TryParse(valueString, out value)) { return(true); } value = 0; return(false); }
internal override bool TryReadValue(out long value) { RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, path); String valueString = regedit.Read(Key); // Check if the registry contains good data. if (valueString != null && long.TryParse(valueString, out value)) { return true; } value = 0; return false; }
} // Is trial public GraphicsDeviceManager(String productName) { this.productName = productName; // Initialize the current license status. license = new GraphicsDevice(productName); license.HardwareId = FindHardwareId(); RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, "Software/The Complot/" + productName); license.License = regedit.Read("License"); license.TimeEnabled = false; // Listen for when the license becomes valid. license.LicenseStatusChanged += new EventHandler(license_LicenseStatusChanged); // No license written yet? if (license.License == null) { license.License = String.Empty; } CheckLicense(); }
public GraphicsDeviceManager(String productName) { this.productName = productName; // Initialize the current license status. license = new GraphicsDevice(productName); license.HardwareId = FindHardwareId(); RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, "Software/The Complot/" + productName); license.License = regedit.Read("License"); license.TimeEnabled = false; // Listen for when the license becomes valid. license.LicenseStatusChanged += new EventHandler(license_LicenseStatusChanged); // No license written yet? if (license.License == null) { license.License = String.Empty; } CheckLicense(); }
internal override bool HasBeenWrittenBefore() { RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, path); return(regedit.Read(Key) != null); }
internal override bool HasBeenWrittenBefore() { RegistryEditor regedit = new RegistryEditor(Registry.CurrentUser, path); return regedit.Read(Key) != null; }