Beispiel #1
0
        private static bool IsRegistryExist()
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\InfofixPosBilling");

            //if it does exist, retrieve the stored values
            if (key != null)
            {
                EncryptionDecryption encryption = new EncryptionDecryption();
                registryValue = Convert.ToDateTime(encryption.Decryptdata(key.GetValue("ExpiryDate").ToString()));
                key.Close();
                return(true);
            }
            else
            {
                return(false);
            }
        }