CairoDesktop.MenuBar.GetUsersIdKey C# (CSharp) Method

GetUsersIdKey() private method

Retrieves the users ID key from a compiled resources file.
private GetUsersIdKey ( ) : string
return string
        private string GetUsersIdKey()
        {
            string idKey = "For internal use only.";
            string resKey = null;

            try
            {
                var mgr = ResourceManager.CreateFileBasedResourceManager("cairo", Environment.CurrentDirectory, null);
                resKey = mgr.GetString("ID-Key");
            }
            catch (Exception)
            {
                resKey = null;
            }

            return resKey ?? idKey;
        }