private bool isPublisher(IQMS client) { try { License license = client.GetLicense(LicenseType.Publisher, Guid.Empty); return(license.LEFOk); } catch (Exception ex) { Console.WriteLine(ex.Message); } return(false); }