Exemplo n.º 1
0
 public bool IsValid()
 {
     bool returnvalue = false;
     MMDBLicenser l = new MMDBLicenser();
     try
     {
         string LicensePath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + @"\" +
             ConfigurationSettings.AppSettings["LicenseFile"].ToString();
         returnvalue = l.IsValid(LicensePath, FeatureName, Passcode, false);
     }
     catch (Exception err)
     {
         MMDBLogFile.Log(err.Message);
     }
     return returnvalue;
 }
Exemplo n.º 2
0
        public bool IsValid()
        {
            bool         returnvalue = false;
            MMDBLicenser l           = new MMDBLicenser();

            try
            {
                string LicensePath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + @"\" +
                                     ConfigurationSettings.AppSettings["LicenseFile"].ToString();
                returnvalue = l.IsValid(LicensePath, FeatureName, Passcode, false);
            }
            catch (Exception err)
            {
                MMDBLogFile.Log(err.Message);
            }
            return(returnvalue);
        }